this gotta be some client issue since you can connect without problem to my server using server.wptguild.com as host… perhaps i forgot something in var ws = new WebSocket(“ws://server.wptguild.com:6060”); ?
it does not work without a proper Origin:
header:
% curl --include \
--no-buffer \
--header "Connection: Upgrade" \
--header "Upgrade: websocket" \
--header "Host: server.wptguild.com:6060" \
--header "Origin: http://wpfdtguild.com" \
--header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" \
--header "Sec-WebSocket-Version: 13" \
http://server.wptguild.com:6060
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 http://wptguild.com or wptguild.com
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.
anyhow.
your websocket works fine on http://wptguild.com – it does not work on httpS://wptguild.com
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 server.wptguild.com and place the acme challenge i now get a connection fetch error :S
“connection refused”
Checking your raw ip - 85.226.187.217 - Make your website better - DNS, redirects, mixed content, certificates
Domainname | Http-Status | redirect | Sec. | G |
---|---|---|---|---|
• http://85.226.187.217/ 85.226.187.217 | -2 | 3.624 | V | |
ConnectFailure - Unable to connect to the remote server | ||||
• https://85.226.187.217/ 85.226.187.217 | -2 | 3.626 | V | |
ConnectFailure - Unable to connect to the remote server |
Looks like a blocking firewall.
Same with the port 6060 - 85.226.187.217:6060 - Make your website better - DNS, redirects, mixed content, certificates
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://server.wptguild.com:5050 i get a timeout
Are you sure? crt.sh | wptguild.com
that server is not using a valid certificate
I don't, I get HTTP/1.1 101 Switching Protocols