How to expose a local web server to the internet fast and easy with ngrok

Hetzel Cordoba
1 min readSep 19, 2018

When you are using a local server for any random stuff (develop, gaming, etc…), most of the time you want this local server to be available/accessible from other machines that are not in your local network.

ngrok exposes local servers behind NATs and firewalls to the public internet over secure tunnels.

  1. Go and download the website https://ngrok.com/download, is available for Windows, Linux , Mac and FreeBSD
  2. Extract the downloaded file
  3. Open your terminal and run ./ngrok http {{server port}} for example ./ngrok http 80 or ./ngrok http 3000, Ngrok will show a http/https urls. You will see an output like the image below

Done

--

--