Skip to content

Instantly share code, notes, and snippets.

@hungdev
Last active May 24, 2023 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hungdev/160b6440397181818f2216c8fe67d96a to your computer and use it in GitHub Desktop.
Save hungdev/160b6440397181818f2216c8fe67d96a to your computer and use it in GitHub Desktop.
ngrok run multiple ports at once

create file ngrok.yml

authtoken: ***
version: "2"
region: "us"
tunnels:
  first:
    addr: 6006
    proto: http    
  second:
    addr: 8080
    proto: http

run: open a tab:

./ngrok start --config='/home/cee/Desktop/demo/ngrok/ngrok.yml' first

open another tab:

./ngrok start --config='/home/cee/Desktop/demo/ngrok/ngrok.yml' second

if it gets error: Your account is limited to 1 simultaneous ngrok agent session you can use:

./ngrok start --config=/Users/cee/Desktop/ngrok/ngrok.yml --all
@sh1nl4n
Copy link

sh1nl4n commented May 24, 2023

thanks <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment