Page 1 of 1

Websocket Not Working Off Localhost

Posted: Sat Jun 12, 2021 4:09 am
by tjdavisbz
I’m using the Pi image. I can access the web server from any machine on my network. I try the Web API test and it won’t connect. I installed the GUI and desktop manager on the Pi to do the web API test and it works FROM the pi itself using localhost. I ran netstat and it shows 9999 bound on all IPs (looks same as SSH server listener) and I know it’s working because, as mentioned, I can access the http site just fine and it works which seems crazy because my understanding is the page itself uses websockets.

Any idea what I’m missing? Any help is appreciated. I searched for hours trying to find a solution before posting.

Re: Websocket Not Working Off Localhost

Posted: Tue Aug 10, 2021 3:53 pm
by FVerhamme
Same issue here!

Greetz Frank

Re: Websocket Not Working Off Localhost

Posted: Tue Aug 10, 2021 4:52 pm
by mcallegari
The only thing I could think of is a cross domain issue, which depends on the browser, not quite the image itself.
Do you have any chance to test the same with an older image?
Thanks

Re: Websocket Not Working Off Localhost

Posted: Mon Nov 22, 2021 8:49 am
by djkad
Certificates problems. Nowadays browsers like chrome and firefox blocks unsecure connections. I'm going to adapt a nodejs proxy i made for another project so i can skip this problem.