ngrok npm code example

Example 1: install ngrok

npm i -g ngrok

Example 2: ngrok live port vue js

ngrok http 8080 -host-header="localhost:8080"

Example 3: ngrok

Start tunnel with any port
./ngrok http http://localhost:9999

Example:
http://1ffcb38dcb8b.ngrok.io/paragonasia/

BAD:
http://1ffcb38dcb8b.ngrok.io/paragonasia

Start tunnel with prt 80
./ngrok http 80

Example 4: ngrok

$ ./ngrok authtoken 1dLfazAyroRPboegbwh3M7x9Hc8_7Q8wNUYKAxSt5rqXbUwKD

Example 5: ngrok

$ ./ngrok authtoken 1bmvO96MSDn7uOGRtB4GWmwoBTc_27GY17KjXZqMPNLEhAYnp