Websocket connection error

hello,
when i used dedicate ip my game server is ok and run and everything is ok,
but i used Cloudflare on domain show me error websocket connection error
how can i fix that ?‌

like this :‌ ipadress:8880 <== work
but domain.com:8880 <== websocket connection error

Are you connecting via ws:// or via wss://?

thank you for answering
infact when i use my game server option [proxy wss = YES] show wws://mydomain:8880
but when i swap proxy wss to NO just show me connection for several minutes

Port 8880 does not work with TLS on Cloudflare. You should switch to one of the HTTPS-enabled ports

https://support.cloudflare.com/hc/en-us/articles/200169156-Which-ports-will-Cloudflare-work-with-

1 Like

I do not have ssl, do I have to buy it? or i can Cloudflare service without ssl service ?‌

If you want to use SSL you will have to configure it on your server anyhow.

Simply get a Lets Encrypt certificate or an Origin certificate from Cloudflare, both are free.

i change port to 8443 and show me error again
ws://mydomain.com:8443

Well, 8443 is - as the list shows - an HTTPS port, so you have to use wss:// and you have to run that on your server to on that port and you need to configure the certificate.

thank you for helping i try and show feedback in here

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