LibVNC / libvncserver

LibVNCServer/LibVNCClient are cross-platform C libraries that allow you to easily implement VNC server or client functionality in your program.
GNU General Public License v2.0
1.1k stars 482 forks source link

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

Open maxnet opened 2 years ago

maxnet commented 2 years ago

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.

bk138 commented 2 years ago

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