I am creating a websocket server using vtortola's websocketserver nugget. When I attempt to connect to the server through the external ip using hercules it connects (but obviously fails negotiation), and when I also attempt to connect to it through javascript on a different computer on the same network it connects fine as well, but when I use one of the online websocket echo testers (ie. https://www.websocket.org/echo.html), it fails to connect at all. When analyzing the port on wireshark, the request never even comes through. Strangly enough, when I change the schema to wss, i can then see the request coming in, although it obviously fails again. The appropriate ports are forwarded on my router, and dmz is enabled. Does anyone have any idea why this might be happening?
If the page you are connecting from is HTTPS, you cannot connect to a ws:// websocket. The browser does not allow you to downgrade security.
You may be interested in a similar question: html5 Websocket with SSL
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments