dmdhrumilmistry
dmdhrumilmistry

Reputation: 21

How to open only https port using pyngrok?

When I use PyNgrok library to open http port it creates 2 tunnels with http and https protocols. But when I use ngrok client provided by them, it only opens https tunnel. Is it possible to open only https tunnel with pyngork?

ngork http 8080
from pyngrok import ngrok

# opening http tunnel
ngrok.connect(8080, 'http')

# logic to maintain tunnel
# ...

print(ngrok.get_tunnels())
# outputs http and https tunnel links

Upvotes: 1

Views: 254

Answers (0)

Related Questions