jlesage / docker-firefox

Docker container for Firefox
MIT License
1.72k stars 309 forks source link

Failed to Connect through WebVPN #164

Open vo5tr0 opened 1 year ago

vo5tr0 commented 1 year ago

Hi,

this is probably not an issue with the container, but maybe somebody is able to help :)

I use a WebVPN (Synology VPN Server Plus) to connect to my local network. But all I get is a dark grey screen along with a red "Failed to connect" message on top. Other devices and containers in the network are working.

Also connecting directly works.

Is there something I could do to troubleshoot this?

vo5tr0 commented 1 year ago

Same problem via reverse proxy :/

jlesage commented 1 year ago

Make sure the reverse proxy has support for WebSocket. It's probably the WebSocket connection that fails.

vo5tr0 commented 1 year ago

Awesome, that fixed my reverse proxy problem. The WebVPN should support websockets though. Any idea, how I could fix that as well?

jlesage commented 1 year ago

You can try to open your browser's developper tools and look at the console for any errors.

vo5tr0 commented 1 year ago

I just tried another docker project with novnc. NoVNC has a menu on the side, where I was able to change the address of the websocket host to the actual ip of my docker host. Is there a similar option/parameter in this project?

jlesage commented 1 year ago

For WebSocket, this project uses the same IP/host used to access the UI itself (i.e. the URL you used), since both are served by the same container.