ngrok allows you to expose a web server running on your local machine to the internet. Just tell ngrok what port your web server is listening on.
If you don’t know what port your web server is listening on, it’s probably port 80, the default for HTTP.
- reference: https://ngrok.com/docs
- ngrok will open a window in MS edge showing: http://127.0.0.1:4040/inspect/http. Each session lasts 8 hours.
- The auth token is stored in
~/.ngrok2/ngrok.yml
To invoke a different account, store the account token at different .yml (such as myapp.yml) file then invoke ngrok as follows:
ngrok http 80 --subdomain=mysubdomain -config=myapp.yml