Ngrok is a simple tool that creates a secure tunnel between your local device and the internet. It allows you to share localhost servers, test web applications, and access services running in Termux using a public URL from anywhere. Here are the commands to install Ngrok in Termux.
Installation Commands
Update Termux packages:
pkg update && pkg upgrade -yInstall required packages:
pkg install wget unzip -yDownload Ngrok:
wget https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-arm64.tgzExtract Ngrok:
tar -xvzf ngrok-v3-stable-linux-arm64.tgzGive executable permission:
chmod +x ngrokMove Ngrok to Termux bin directory:
mv ngrok $PREFIX/binCheck Ngrok version:
ngrok versionUsage Commands
Add your auth token:
ngrok config add-authtoken YOUR_TOKENExpose localhost port 8080:
ngrok http 8080Expose localhost port 3000:
ngrok http 3000Start TCP tunnel:
ngrok tcp 22