Skip to content

Instantly share code, notes, and snippets.

@maximiliano
Last active March 17, 2026 15:58
Show Gist options
  • Select an option

  • Save maximiliano/b69906e513e5b6860327d821bc0578af to your computer and use it in GitHub Desktop.

Select an option

Save maximiliano/b69906e513e5b6860327d821bc0578af to your computer and use it in GitHub Desktop.
# Create 3 tunnels, each for different ports, with only https enabled
# This way the ngrok process stays bellow the Free plan limit (4 tunnels)
authtoken: ...
log: ngrok.log
tunnels:
first:
addr: 3000
proto: http
bind_tls: true
second:
addr: 8000
proto: http
bind_tls: true
third:
addr: 9999
proto: http
bind_tls: true
@jovylle
Copy link
Copy Markdown

jovylle commented Nov 3, 2023

If I have t his active, how can anyone connect to my ngrok server, the hostname seem not showing and port to connect to.

@ar-juan
Copy link
Copy Markdown

ar-juan commented Mar 17, 2026

For me this just assigns the same url for all (free version):

Forwarding                    https://same-url-for-all.ngrok-free.dev -> http://localhost:1234                                                                                
Forwarding                    https://same-url-for-all.ngrok-free.dev -> http://localhost:4000                                                                                
Forwarding                    https://same-url-for-all.ngrok-free.dev -> http://localhost:3000  

And it basically becomes a load balancer.

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