libvncserver icon indicating copy to clipboard operation
libvncserver copied to clipboard

httpd: allow websockets VNC connection on http port if run with -enablehttpproxy

Open maxnet opened this issue 4 years ago • 2 comments

Upstream noVNC defaults to making the VNC websockets connection on the http port instead of port 5900 and it would be nice if that would just work.

If run with -enablehttpproxy allow http connection to be upgraded to websockets. To test (on Debian or its derivates):

sudo apt install novnc
sudo ln -sf vnc_lite.html /usr/share/novnc/index.vnc
sudo x11vnc -httpport 80 -enablehttpproxy -httpdir /usr/share/novnc -no6 -xkb -repeat -auth guess -display WAIT:0 -forever -shared

Go with web browser to IP, and it should work without having to patch novnc or change settings.

maxnet avatar Dec 13 '21 13:12 maxnet

A lot of changes to the guts, this will need a lot of testing for regressions.

bk138 avatar Apr 28 '22 14:04 bk138