Access localhost from the internet

LocalhostPortWampPortforwarding

Localhost Problem Overview


I need to forward my localhost for a short period of time for testing purposes. It has to be accessed from the public internet.

How can I achieve this?

Localhost Solutions


Solution 1 - Localhost

There are a couple of good free services that let you do the same. Ideal for showing something quickly during development/testing:

Edits:

  • add ngrok service
  • add localhost.run service
  • 04/22 - add CloudFlare Tunnel

Solution 2 - Localhost

You go into your router configuration and forward port 80 to the LAN IP of the computer running the web server.

Then anyone outside your network (but not you inside the network) can access your site using your WAN IP address (whatismyipcom).

Solution 3 - Localhost

Even though you didn't provide enough information to answer this question properly, your best shots are SSH tunnels (or reverse SSH tunnels).

You only need one SSH server on your internal or remote network to provide access to your local machine.

You can use PUTTY (it has a GUI) on Windows to create your tunnel.

Solution 4 - Localhost

use your ip address or a service like noip.com if you need something more practical. Then eventually configure your router properly so incoming connection will be forwarded to the machine with the server running.

Solution 5 - Localhost

Open the port where your system is running (sample 8080). Open the port everywhere... Modem, firewalls, etc etc etc.

THen, send your ip + port to the person who will use it.

sample: http://200.200.200.200:8080/mySite/

Solution 6 - Localhost

You are accesing localhost, meaning you have a web server running on your machine. To access it from Internet, you need to assign a public IP address to your machine. Then you can access http://<public_ip>:<port>/. Port number is normally 80.

Solution 7 - Localhost

Try with your IP Address , I think you can access it by internet.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionGeorge LeowView Question on Stackoverflow
Solution 1 - LocalhostSaurabh KumarView Answer on Stackoverflow
Solution 2 - LocalhostDan GrossmanView Answer on Stackoverflow
Solution 3 - LocalhostPablo Santa CruzView Answer on Stackoverflow
Solution 4 - LocalhostEnricoOrs.View Answer on Stackoverflow
Solution 5 - LocalhostrenanleandrofView Answer on Stackoverflow
Solution 6 - LocalhostBarunView Answer on Stackoverflow
Solution 7 - LocalhostXMenView Answer on Stackoverflow