Eis-D-Z / wsproxy

A python websocket proxy, the client joins and adds as a url parameter the websocket server to be proxied.
0 stars 0 forks source link

How to install and run on port 80 ? #2

Open ingnelson opened 4 years ago

ingnelson commented 4 years ago

How to install and run on port 80 ? Please I need your help

Eis-D-Z commented 4 years ago

I will need a few more details, for now the proxy is set to serve on local port 8674, you want it to serve on port 80? If you don't want it to do it in a docker container you can just take the wsproxy.py as is and run it from the command line like: python wsproxy.py. Now I am assuming you would have wanted to connect to wss://echo.websocket.org via the proxy, so you connect to the proxy via your method, in my testing I used websocat, like this: websocat ws://127.0.0.1:8764?url=wss://echo.websocket.org, I used the localhost IP of 127.0.0.1 but if you are on a server you can use it's public IP, 8764 is hardcoded as the listening port so you would have to change it in the code atm if you want another port. Now you are connected to wss://echo.websocket.org via the proxy.