my websocket sever is wss and is running on my ubuntu server.
it is requested into hosting name like wss://domain.com:32054/game
but it’s not working
Anyone that can help me solve it?
Is this being proxied through Cloudflare?
If so, note that Cloudflare can only accept connections on these ports.
You could create wss.example.com as a subdomain (to be served on https port 443 at Cloudflare) and then route to your origin on port 32054 using origin rules.
Available Origin Rules settings · Cloudflare Rules docs
thank you for reply.
of course, this is be proxied through cloudflare.
how to enalble the specific port on cloudflare ?
I can’t connect websocket server through cloudflare.
could you please explain more detail how to configure the cloudlflare ?
I am looking forward to your reply.
thank you for your time.
You won’t be able to use port 32054 on Cloudflare. HTTPS is only available on ports 443, 2053, 2083, 2087, 2096, 8443 (only 443 supports caching).
I suggest you set up a DNS record called say wss
and point it at your origin server IP. In origin rules here…
https://dash.cloudflare.com/?to=/:account/:zone/rules/origin-rules
…set your origin port as 32054.
Cloudflare will now proxy https://wss.example.com to your origin on port 32054.
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.