HTTP 403 Error Connecting to My WebSocket Server via Cloudflare Tunnel

I use Cloudflare Tunnel with my WebSocket server, but why can’t I connect to my server from the outside and receive an HTTP status 403?

wss://relay.rushmi0.win

Hi @rushmathorn

The 403 error could be originating from your origin server. You can look at the Cloudflared logs to see where the 403 is originating from. Please refer to this documentation for instructions on how to enable logging: Tunnel logs · Cloudflare Zero Trust docs

I looked in the LOG and didn’t see any errors… I don’t know why it doesn’t work for ws, but for http it work ammmmmmm :exploding_head: :exploding_head: :exploding_head:

  cloudflared-tunnel:
    container_name: cloudflared-tunnel
    image: cloudflare/cloudflared:latest
    restart: unless-stopped
    command: tunnel --no-autoupdate --loglevel debug run --token XXXXXX

Doesn’t websockets run on a different port on the same host?