Websockets ws to wss on custom ports

I have a server running a regular website in port 80 and a websocket in custom port 8080, when I access it as ws://address:8080 it works, but I need to be able to add a secure layer on top of it like regular http does (with Flexible ssl option), is that posible for websockets on custom ports? I tried wss://address:8443 but it gives gateway timeout, tried wss://address but it seems to connect to the 80 port which runs regular http. Tried wss://address:8080 but it gives ssl error.

Do you need to have Flexible or can you switch to Full?

Also:

https://developers.cloudflare.com/fundamentals/get-started/network-ports/

wss:// will probably only work on HTTPS ports shown there.

This topic was automatically closed after 14 days. New replies are no longer allowed.