the Ngrok documentation mentions this example to share a local port on Internet. Example: Open port 80 on your local machine to the internet
$ ngrok 80
How do I stop sharing this port if I would not want it to be accessed on the internet any more.
Join Stack Overflow to learn, share knowledge, and build your career.
the Ngrok documentation mentions this example to share a local port on Internet. Example: Open port 80 on your local machine to the internet
$ ngrok 80
How do I stop sharing this port if I would not want it to be accessed on the internet any more.
First, you have to find the ngrok process id
by $ top
command.
After that, just run $ kill -9 {ngrok_id}
That's all :)
You just have to stop ngrok for this.
ps -A
to see all processes, then kill XXXX
, replacing XXXX with the number of the ngrok process.
– Joe Coyle
Oct 11 '19 at 2:49
killall ngrok
from a script or the command line will kill all running ngrok tunnels that are running.
This is what worked for me. Ty @kkron.