Error establishing SSL connection

this gotta be some client issue since you can connect without problem to my server using as host… perhaps i forgot something in var ws = new WebSocket(“ws://”); ?

it does not work without a proper Origin: header:

% curl --include \
     --no-buffer \
     --header "Connection: Upgrade" \
     --header "Upgrade: websocket" \
     --header "Host:" \
     --header "Origin:" \
     --header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" \
     --header "Sec-WebSocket-Version: 13" \
HTTP/1.1 403 Forbidden
Connection: close

on your website, are you using http or https? it can behave differently. also, pay attention to CORS.

orgin is wrong, you wrote it too quickly, my server denies any orgin thats not or

I know, it’s wrong on purpose to make the request fail. The right one is in a previous post.

Check from http and https

for your question im only using http for now, when i get connection to work i will upgrade to https

on your website, not on your nodejs server.


your websocket works fine on – it does not work on httpS://

wait did you actually visit my site and it connects to server?

yep, it gets the userlist just fine

wtf? i get a timeout when i try to

is this a browser cache issue perhaps?

I use Firefox 75.0.

Your browser is probably different.

yeah i use google chrome

gonna clear cache real quick and see if that does the trick 2 sec, might not be able to reply to you instantly…

nope didnt work… hmm

any idea why firefox works and chrome doesnt?

alright trying to setup ssl now, when i use manual mode for certbot on domain and place the acme challenge i now get a connection fetch error :S

“connection refused”

Checking your raw ip -

Domainname Http-Status redirect Sec. G -2 3.624 V
ConnectFailure - Unable to connect to the remote server -2 3.626 V
ConnectFailure - Unable to connect to the remote server

Looks like a blocking firewall.

Same with the port 6060 -

oh server is down right now doing some stuff

okay managed to get cert etc from certbot now… started a https server listening on 5050 with the credentials, but when i try to connect with wss:// i get a timeout

Are you sure?

that server is not using a valid certificate

I don’t, I get HTTP/1.1 101 Switching Protocols