by BehindJava

How to publish your local web server to internet without any port forwarding

Home » java » How to publish your local web server to internet without any port forwarding

In this tutorial we are going to learn about publishing the local web server to internet without any port forwarding.

Suppose, you face a problem like, you deployed a web application in your local machine’s web server and you want to access that application from internet?

If you consult the solution for this problem with a System Administrator, He will definitely suggest port forwarding and if you go forward with port forwarding it will kill a lot of time from you for that activity. But, the same thing you can do by saving a great amount of time and without any port forwarding by using the tool ngrok.

How to do it?

ngrok is a very simple lightweight tool. From the following few steps you will get a clear cut idea about ngrok.

  1. Download ngrok from https://ngrok.com/download.
  2. Open the command prompt and go to the location where ngrok.exe is extracted and type ngrok.exe command. It results to generate the ngrok URL (here it become http://7f30f99a.ngrok.com ). You can access this URL from internet (public network) and result’s your website :)

tti

tti

  1. Also it shows a detailed inspection information about the HTTP traffic through that url.

tit

How it works?

NGrok running behind HTTP Proxy. You can find more about it from the here

Alternatives of ngrok

There are so much of similar tools like ngrok. Here follows few of them.

Localtunnel

pagekite