Access localhost from the internet [closed]

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?


There are couple of good free service that let you do the same. Ideal for showing something quickly for testing:

  • http://localtunnel.me/
  • https://ngrok.com/
  • http://localhost.run/

Edits:

  • add ngrok service
  • add localhost.run service

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).


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.


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.