How To Install Ngrok & Setup the Auth-Token on Linux?
Last Updated :
24 Jul, 2025
Ngrok is a tool that allows you to create a secure tunnel from a public endpoint to a locally running web service on your machine. In simpler terms, ngrok lets you expose a web server running on your local machine to the internet. So others can access what you are running locally.
For example, if you are developing a web application on your laptop, you can use ngrok to generate a public URL that will tunnel traffic to your local development environment. This allows you to easily share your local work with others for testing, and demonstrations, or access it yourself from anywhere. All without needing to deploy it on a live server.

In short, Ngrok creates a secure public tunnel to whatever you are running locally on your machine. It makes your local development environment accessible from the internet.
Getting Started with the Introduction of NGrok
Ngrok is a tool that creates a secure tunnel from a public endpoint to a locally running web service. It allows you to expose a web server on your local machine to the internet.
In short, ngrok enables you to:
- Share a website running on your local machine publicly
- Demo an application you are developing locally
- Expose and share any TCP service on your local machine
- Test webhooks and other external service integrations with your local environment
- Access websites/tools running locally through a secure tunnel
Key capabilities:
- Public access to local services
- Secure tunnels to local web services
- Inspection and replay of traffic to local endpoints
- Forward traffic to specified ports on your machine
In summary, ngrok is a tunnelling tool to easily make any web service on your local development machine publicly accessible over the internet in a secure way.
Installation of NGrok
Step 1: SignUp on Ngrok
Go to https://ngrok.com/downloads/windows website and sign up or log in with Google.

Step 2: Download Ngrok
After signing up, you will see this window, then you need to click on "Download for Linux."

Step 3: Now, you need to open the terminal and open the Downloads directory by following the procedure below, where our file is downloaded.
Step 4: Now, we need to unzip this file on our system by using the following command.
tar -xvzf ( file name )

Setup of the Auth-Token
Step 1: After signing up and logging in, the dashboard will open, scroll down, and then copy the auth token displayed there.

Step 2: Open up the terminal and paste the auth-token command. Sometimes this command won't work, so I have made some changes in the command.
./ngrok authtoken ( Your Auth_Token )

Step 3: Now, the final step is to start the Ngrok server. Use the following command to start the Ngrok server.
Well, we can use any port number to start the server like 8888, 8080, 4242, 4444, etc.
./ngrok tcp 8989

Conclusion
Ngrok streamlines and secures the local development process. It enables developers to collaborate and validate their work without complex permanent infrastructure. Ngrok’s flexibility, ease of use and security make it an essential tool for rapid and iterative coding, testing and sharing during the development process.
Also Read
Similar Reads
How to Install python 'bottle package' on Linux? py-bottle is a lightweight micro-framework for developing small web apps and it supports request dispatching (Routes) with URL parameter support, templates, a built-in HTTP Server, and adapters for several third-party WSGI/HTTP-server and template engines are all included in a single file with no de
2 min read
How to Install GIT on GoDaddy Server on Linux? Git is a widely-used version control system that allows developers to track changes, collaborate on projects, and manage code repositories efficiently. If you're hosting your projects on a GoDaddy server running Linux, installing Git can simplify your development workflow. This guide will walk you t
2 min read
How to Install Angularjs on Linux? AngularJS as the name suggests is a JavaScript-based framework. Being more precise AngurlarJS is an open-source front-end framework for the web. It is backed and maintained by Google. It has been in the market for a long time now, its initial release dated back to Oct 2010, and its last stable relea
4 min read
How to Install Nipe tool in Kali Linux? Nipe is a program that uses the Tor network as the user's default gateway, routing all traffic on the Tor network, which is often used to provide privacy and anonymity. It should be emphasized that hiding an IP address alone will not provide anonymity when using a tool for privacy and anonymity, as
3 min read
How to install Postman on Arch-based Linux Distributions(Manjaro)? Postman is an HTTP client used to build, test, and modify APIs. It provides a graphical user interface through which developers can generate various types of HTTP requests like GET, POST, PUT, PATCH, and DELETE. It is used by more than 20 million developers across the globe to develop RESTful APIs.
1 min read
How to Install Jekyll on Linux? Jekyll is software used for creating websites. It can create websites more dynamically. Jekyll is useful nowadays. It can convert simply written text files into website documentation. It is simple to use. There is no database required for using Jekyll. It is very easy to use. Jekyll is platform-inde
2 min read