Skip to content

Ngrok

https://ngrok.com

Acces local http server on the internet.

(Alternative: tunnelmole)

Set up a tunnel to local http server

To test and open help:

ngrok -h

First, start a local http.server at port 8000 (default port):

cd [directory]
pyhton3 -m http.server

Second, start ngrok in new terminal instance:

ngrok http 8000 (change 8000 to the port that is used)

Start ngrok secured by password/username (min. 8 characters each):

ngrok http --basic-auth="username:password" 8000

Open the ngrok web interface to inspect processes:

http://127.0.0.1:4040/

Share local files

First, start a local http.server at port 8000:

cd [directory to file or folder with files] 
pyhton3 -m http.server

Second, start ngrok in new terminal instance:

ngrok http --basic-auth="username:password" file://[directory to file or folder with files]

ngrok-skip-browser-warning