Websocket ports for firewall

Looking for what ports websocket extension runs on ( to open on firewall)?

My local dev box works great but when I deploy it I get a 404. I cant find anything in the docs on what ports it uses for wss://.

Websockets use HTTP (80) or HTTPS (443) ports for communication (depending on if you’re running SSL or not, ofc) - so the 404 is unlikely to be an issue with the firewall.

More details:
https://websocket.org/aboutwebsocket.html

HTH

– Denny

1 Like

Thanks for this. I think my problem is I’m running nginx in front of lucee on the server. So im trying to figure that out now.

Do you know if its possible to change the port that websockets use? Where can I change that in Lucee? I read that aws load balancers are a problem.

Ngnix config. for those who need it.

I figured out the problem. restarting lucee didn’t do it. Rebooted the server after the websocket install with the ngnix config, all good.




map $http_upgrade $connection_upgrade {
    default upgrade;
    ''      close;
}



 location /ws {

        proxy_pass http://localhost:8888;
                proxy_set_header Upgrade $http_upgrade;
                #proxy_set_header Connection "Upgrade";
                proxy_set_header Connection $connection_upgrade;
                proxy_http_version 1.1;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header Host $http_host;
                proxy_intercept_errors on;
                proxy_redirect off;
                proxy_cache_bypass $http_upgrade;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-NginX-Proxy true;
                proxy_ssl_session_reuse off;

    }

3 Likes