ngrok protocols code example

Example 1: ngrok config file

ngrok start --config=./ngrok.yml --all

Example 2: ngrok config file

authtoken: 4nq9771bPxe8ctg7LKr_2ClH7Y15Zqe4bWLWF9p
tunnels:
  myapp-http:
    addr: 80
    proto: http
    hostname: example.com
    bind_tls: false
  mypp-https:
    addr: 443
    proto: tls
    hostname: example.com

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