- Author: Pedric Kng
- Updated: 26 Jun 2020
Snap is a simple way to install
- Install snap
sudo apt update
sudo apt install snapd- Install ngrok via snap
sudo snap install ngrokCreate the ngrok configuration as per ngrok documentation
Note: the 'web_addr' configuration refers to ngrok web console. By default, it is set to localhost for ubuntu interactive mode-only (UI). For pure console, change it to an external url/ip address.
web_addr: 192.168.137.47:4040- Create a Ngrok service file in /etc/systemd/system/
Enable ngrok service
sudo systemctl daemon-reload
sudo systemctl enable ngrok.serviceStart ngrok service
sudo systemctl start ngrokCheck if ngrok service is up
sudo systemctl status ngrokCheck ngrok service version
ngrok --versionInspecting the traffic through tunnel
ngrok http 8080-
Browse to http:\localhost:4040 for the ngrok console.
-
Query via ngrok rest api
curl http://192.168.137.47:4040/api/tunnelsInstall ngrok using snap [1]
How to Get Public IP Address by Using Ngrok or SSH Tunneling [2]