WebSocket via ws not connecting but wss is

cubesnyc

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?

rfestag

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.

edited at
0

Comments

0 comments
Login to comment

Related

Apache: Proxy websocket wss to ws

Websocket handshake. From ws to wss

Can I change WebSocket from ws to wss? (000webhost)

How to run a websocket server on ws and wss at same time that they both communicate or sync data with each other? Or WSS on HTTP and WS on HTTPS?

how-to tunnel a secure websocket (wss://) to insecure websocket (ws://) ( stunnel ? ) on linux

Difference between ws and wss?

How to stop chrome from upgrading websockets from WS to WSS when the websocket object is created on an HTTPS page

XSockets WSS not connecting

Can't connect to Flask-Socketio via wss but works via ws

WebSocket connection to 'wss://api.example.com/ws' failed: Error during WebSocket handshake: Unexpected response code: 404

Deciding whether to use ws or wss?

How does Nginx Ingress handle an incoming WebSocket Connection over HTTPS (wss:...) when routing to backend over HTTP? (ws:...)?

ELB listener configuration for WSS websocket

Unable to connect websocket with wss in android

Play framework: Secure WebSocket (WSS)

Laravel Echo tries to connect wss instead ws

How to disable WS/WSS protocol browser

Receive an ArrayBuffer on WebSocket (ws)

Sails WebSocket connection to 'ws:

Connecting to a secured websocket

Browser not connecting to server with websocket

Create websocket without connecting

nginx websocket config - wss config in nginx

WSS/TLS websocket connection with Swift iOS

How to use secure websocket (wss) in Tornado

Node wss Websocket works on Desktop, not on Mobile

Format to send and receive data using wss (websocket)

What does this websocket url "ws://{{$}}/ws" mean?

Traefik: http, https, ws, wss on same domain (docker swarm)

TOP Ranking

HotTag

Archive