Home > OS >  How to use pyngrok with multi-threading?
How to use pyngrok with multi-threading?

Time:01-14

i'm trying to run a python script with 3 threads one of them is to port forward coming connections to localhost using pyngrok using the threading module, but the issue is that whenever the ngrok server starts it hangs all other threads...

    def CreateTunnel(self):
        try:
            ngrok.set_auth_token(self.AuthToken)

            print(f"{Fore.GREEN}[ ] Opening TCP tunnel            
  •  Tags:  
  • Related