Hi, I'm trying to host a Unity dedicated server for my game to a domain I own. Unity uses WebSockets for the multiplayer framework I'm using, so the clients talk to the host through
wss://localhost:7777
wss://localhost:7777
I made a quick python script to test this: It sends a standard client hello to the endpoint and expects the server response. It works fine for
localhost
localhost
.
So I tried setting up a cloudflared tunnel to provide the WebSocket service at wss://localhost:7777 to api.mydomain.com, with the path /socket.