Using Tunnels for Non-Secure WebSockets

Is it possible to create a secure WebSocket (WSS) tunnel to access a non-secure local WebSocket (WS) server? I have a non-secure WebSocket server running on port 8080 and have set up a tunnel, but I'm unable to connect to it. I've tried various URL formats including wss://, ws://, https://, and http:// with the domain server1.domain.com/Server, but none are working. The '/Server' subdirectory is essential for the WebSocket server.
No description
2 Replies
ankcha
ankchaOP2mo ago
I've also tried setting Type to TCP. It connected but i could not see any connection my WebSocket server. Fixed, had to use port 80.
Chaika
Chaika2mo ago
Looks like you figured out the root of the issue. May be worth noting for TCP option you need to run cloudflared locally: https://developers.cloudflare.com/cloudflare-one/applications/non-http/cloudflared-authentication/arbitrary-tcp/ which is one reason why it didn't work. Websockets also are http/start with an http request before they switch over
Want results from more Discord servers?
Add your server