Access localhost from the internet

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

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

Edits:

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

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