Elektordi / obs-websocket-py

Python library to communicate with an obs-websocket server (for OBS Studio)
MIT License
237 stars 59 forks source link

Connect to ngrok tunnel using obs-websocket-py #65

Closed rahulsrinivasan1 closed 3 years ago

rahulsrinivasan1 commented 3 years ago

Hello. I have tunneled the obs websocket port (4444) using ngrok. I am able to access obs studio remotely using http://obs-web.niek.tv/. But im not able to connect using obs-websocket-py using a python script. How to provide the (host, port) to this library so i can connect remotely using python. Thanks in advance.

Elektordi commented 3 years ago

In case your public url is https://xxxxx.ngrok.io/ you can use:

host = "xxxxx.ngrok.io"
port = 443

If you are using http instead of https, use port = 80. Please test and confirm if it works!

rahulsrinivasan1 commented 3 years ago

@Elektordi Thank you so much. It worked.