Ngrok-H is a Termux-based tool that allows users to create secure tunnels and expose local servers to the internet using Ngrok. This tool is designed for Android users who want to host web services, SSH, or other local applications and make them accessible remotely.
- Secure & Fast: Creates a secure tunnel between your local server and the internet.
- No Port Forwarding Needed: Works even if your ISP blocks port forwarding.
- Easy Setup: No complex configurations, just run a simple script.
- Works on Mobile Hotspot: Designed to work specifically on mobile data networks.
Ngrok-H works only on mobile hotspot (4G/5G data networks).
- If you're using Wi-Fi, your ISP may block tunneling.
- If you are on a mobile hotspot, Ngrok will work without issues.
✅ Supports multiple protocols (HTTP, TCP, TLS)
✅ Works with web servers, SSH, VNC, and other local services
✅ Automatic Ngrok token configuration
✅ No root required
✅ Lightweight and fast
Ensure you have the following before using Ngrok-H:
✔ Android device with Termux installed
✔ Mobile data connection (Hotspot) (Not Wi-Fi)
✔ Ngrok account (Sign up at ngrok.com to get your Auth Token)
✔ Required Termux Packages:
git
(for cloning the repository)curl
(for downloading Ngrok)unzip
(to extract Ngrok)
Follow these steps to install Ngrok-H on Termux:
pkg update && pkg upgrade -y
pkg install git curl unzip -y
git clone https://github.com/HYDRA-TERMUX/Ngrok-H.git
cd Ngrok-H
bash install.sh
./ngrok-h.sh
- Run Ngrok-H
./ngrok-h.sh
- Enter your Ngrok Auth Token (if prompted)
- Select the tunnel type (HTTP, TCP, etc.)
- Enter the port number of the local service
- Copy the generated public URL and share it
- Expose a local web server running on port 8080:
ngrok http 80
Ngrok requires a public IP address to establish a tunnel. Many Wi-Fi ISPs use NAT (Network Address Translation), which blocks incoming connections. However, mobile networks assign dynamic public IPs, allowing Ngrok to work seamlessly.
❌ Ngrok Not Working?
- Make sure you are using mobile data (hotspot), not Wi-Fi.
- Ensure that Termux has storage permissions (
termux-setup-storage
). - Run
pkg update && pkg upgrade
to update Termux packages. - Check your Ngrok authentication token (
./ngrok authtoken <YOUR_TOKEN>
).
If you face any issues, open an issue in this repository.
📌 Join our Telegram group for support! [Telegram Link]
This project is open-source under the MIT License.