ngrok websocket code example

Example 1: ngrok config file

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

Example 2: ngrok live port vue js

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

Example 3: 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 4: how do you stop your ngrok tunnel

On windows machine go to command prompt:

taskkill /f /im ngrok.exe

Tags:

Misc Example