pyngrok multiple sessions setup
Hi, i'm trying to run 2 python files with pyngrok, but i receive next error:
The ngrok process errored on start: authentication failed: Your account is limited to 1 simultaneous ngrok agent session.
You can run multiple tunnels on a single agent session using a configuration file.
To learn more, see https://ngrok.com/docs/ngrok-agent/config/
i tried to change ngrok.yml file:
version: "2"
authtoken: *********
tunnels:
first:
addr: 8443
proto: http
second:
addr: 8444
proto: http
And my .py files
1 file:
public_url = ngrok.connect(8443, "http").public_url
2 file
public_url = ngrok.connect(8444, "http").public_url
How to use multiple sessions with free acc and pyngrok?