How to install ngrok in Termux on Android 2023

install ngrok in termux

Are you looking for a step-by-step guide to install Ngrok in Termux on Android without rooting? Then you have come to the right place.


Ngrok is a command line utility tool that enables you to access your web application running on your local computer. It has a built-in user-interface where you can introspect all your network traffic passing from your local network. Ngrok provides a high level of flexibility in managing the web server such as secure tunnels, custom subdomains, Webhooks, etc.

It is often referred to as the best alternative to LocalXpose, localtunnel, sish, and JPRQ. It uses a technique called port forwarding. Additionally, you can replay any request in order to increase the iteration cycle. The Ngrok system generates a user-friendly temporary web address that can be viewed from anywhere in the world. Your site can also be protected with a password that will allow only those who know the password to access your site. It is equipped with a file server that gives you ftp-like functionality, so you have easy access to your server files.

Here is a step-by-step tutorial for installing ngrok in termux on Android.

The first thing you need to do is install termux on your android phone and permit it to access your local storage. Here is the detailed guide for it, which you can read.

How to install Ngrok in Termux on Android

To install Ngrok on termux, you need to download the zip file from the official website and then run it with the termux emulator.

Let’s see how.

Step 1: Upgrade the packages

To begin, you have to upgrade all your packages and binaries to the latest version. Run the below command:

apt update && apt upgrade

Step 2: Install required packages

In order to install the ngrok package, you must first install a zip archiver on your terminal. Additionally, you must install the wget module in order to download files from the server. Run the below command:

pkg install zip wget -y

Step 3: Install Ngrok modules

We can now download and install the ngrok packages in the terminal. Run the below command:


Step 4: Unzip the Ngrok packages

Now you have to unzip the ngrok arm packages, Run the below command.


Step 5: Make the ngrok packages executable

Then you have to make sure that ngrok modules are executable. Run the below command.

chmod +x ngrok

Step 6: Obtain Ngrok auth credentials

Our next step is to get the auth token for the ngrok account. It can easily be obtained from the official site. You can sign up for a free account and then log in to the site to get your credentials. As you can see from the below picture.

ngrok auth token termux

Step 7: Run Ngrok in Termux

(Last step) The ngrok framework has now been successfully installed in the terminal. If you want to expose your locally hosted web server to the world wide web, run the below command.

./ngrok authtoken AUTH_TOKEN

Note: Replace AUTH_TOKEN with the token which you have obtained from the ngrok portal (see step 6).

That’s it. The termux emulator is now configured with the ngrok web tunnel service. You can server a python/php based web server with the terminal.

Note: Ngrok module has a help command (./ngrok help) that you can run to see documentation within the termux terminal.


Whether you’re a freelance developer or a corporation, Ngrok is the perfect tool. Your portfolio and projects can be easily showcased to clients and employees without being deployed online. It saves you a lot of time when developing web projects. However, there are some alternatives available that you can try. Ngrok’s service has been a favorite of mine for many years because of its easy-to-use web interface and high level of security.

I’d like to hear about your experience with Ngrok. Feel free to share your thoughts in the comment section below. I have written several articles on termux which you can read here.