[Python] How to implement ngrok-like tunneling in Python with existing libraries?

Discussão em 'Python' iniciado por Stack, Março 4, 2025.

  1. Stack

    Stack Membro Participativo

    Let's say, I need to expose my local server (localhost:5000). I am looking for a Python library that provides ngrok-like functionality - creating a tunnel from my public server to my local machine. I don't want to implement tunneling by myself, because of possible bugs and vulnerabilities. Instead, I want to rely on a ready-made solution

    Example of desired usage:

    # client side
    tunnel = SomeTunnel(url="my_server", local_port=5000)
    tunnel.start()
    tunnel.close()


    What libraries would you recommend?

    Continue reading...

Compartilhe esta Página