In this tutorial, we learn about the complete process of ngrok, how we can install it on windows, and an explanation of what is ngrok and the use of the ngrok via video demo.

Ngrok is a useful tool to create a secure tunnel for locally hosted files and projects using reverse proxy technology. It is used to host any local file or project over the web.

What is ngrok and How to install ngrok on Windows?
What is ngrok and How to install ngrok on Windows?

Introduction to Ngrok

Ngrok is a tool, which allows you to expose your local machine server over the internet. Just set your localhost port to the ngrok command.

If you did not know what port is being used by your local host, then it’s probably listening to port 80. Port 80 is also the default for HTTP servers.

Example: Set up localhost port 80 over the internet by using the Ngrok command

Ngrok client server is also available for macOS, and Linux

How to Install Ngrok on Windows?

How to download and setup Ngrok on windows

Here are very simple steps to install ngrok on a windows machine,

  1. Go to ngrok download page
  2. Download windows setup (Zip file).
  3. Extract that zip file then you got a dot EXE file.
  4. Double-click on the EXE file to open ngrok terminal.

How to Use Ngrok on Windows?

After opening the ngrok terminal, run the below command which takes your local URLs to live to the internet.

In the above image first, we run the ngrok command for Port 80 which is a default port. Then ngrok hosted our localhost URL over the Internet by using their random subdomain name.

There are 2 URLs, the first is HTTP which is not secure and another is HTTPS secure URL. You can use both URLs according to your requirements.

Is Ngrok Connection Secure?

The established connection by ngrok is secure and ngrok only sends and receives the data which comes from our localhost connection with the defined port. So for that reason, the damage probability is negligible.

Most of the time, you are using ngrok to give access to someone to test your local application. Ngrok generates the random URL at that time, so ngrok is only accessible while the tunnel is active on the terminal.

Cost of Ngrok

Basic Service: Free and available up to four tunnels and 40 connections per minute.

Commercial Service: Start from $5 per month (provide more connections and custom domains).

Some Command Examples of Ngrok


  • ngrok http 80 secure public URL for port 80 web server
  • ngrok http -subdomain=baz 8080 port 8080 available at
  • ngrok http tunnel to host:port instead of localhost
  • ngrok http https://localhost expose a local HTTPS server
  • ngrok tcp 22 tunnel arbitrary TCP traffic to port 22
  • ngrok tls 443 TLS traffic for to port 443
  • ngrok start foo bar baz start tunnels from the configuration file

Here is a complete tutorial and guide about Ngrok. How do we use it and what is the use of ngrok?

If you get any issues please comment below.

Also Read:

Happy Coding..!

Was this article helpful?

By Bikash

My name is Bikash Kr. Panda. I own and operate PHPCODER.TECH. I am a web Programmer by profession and working on more than 50 projects to date. Currently I am working on the web-based project and all the CMS and frameworks which are based on PHP.

Leave a Reply

Your email address will not be published. Required fields are marked *