top of page
Search
  • Writer's pictureG.I.T.S.

Install Ngrok with Termux

ngrok is the programmable network edge that adds connectivity, security and observability to your apps with no code changes.


First create a free account on Ngrok.com to get an auth token for your account. Note: Without an auth token, you will not be able to start tunnels for the locally hosted applications.


Note: Download client library depending on the OS you are on.


Unzip the downloaded package.


Update the ngrok configuration file with your auth token by running the following command on the terminal/command prompt.


./ngrok authtoken {your-auth-token}

----------


You can visit/view the config file to see if your auth token has been updated or not. The Ngrok config file is available in the user directory at location –


~/.ngrok2/ngrok.yml

----------


Once the auth token gets updated, you should be able to start the tunnel for your locally hosted applications.


To start the tunnel on port 80 for localhost, simply execute the below command.


./ngrok http 80

----------


Note: Once the above command gets executed, a tunnel gets created to the localhost:80 (Whatever application is running on this port should be accessible through the tunneled URL).

Recent Posts

See All

コメント


Post: Blog2_Post
bottom of page