Accessing Local Server via Internet

Dear readers, In this article i have described the way to access the local server via internet (or creating secure tunnels to localhost).

We will use Ngrok  software, which is a multi-platform tunneling, reverse proxy software that establishes secure tunnels from a public endpoint such as internet to a locally running network service.

We can download Ngrok software from their official website: https://ngrok.com/.

After downloading the same extract the .zip file & run ngrok.exe as Administrator.

You can see the below screen:

Ngrok first screen

This screen display the basic help commands to operate the tool.

Now you need to setup your localhost port-number. Default port number is 80. Setup the same, run below command:

ngrok http 80

It will create a access link for you:

Ngrok Running Screen.JPG

As shown above, for my localhost access link is http://84227dcd.ngrok.io.

For Developers, this software save lots of time to avoid constantly redeploy your in-progress work. Its helps to show demo to clients & get feedback without deploying.

Check Ngrok  documentation for more details.

Thanks.

Leave a comment