novnc / websockify

Websockify is a WebSocket to TCP proxy/bridge. This allows a browser to connect to any application/server/service.
GNU Lesser General Public License v3.0
3.95k stars 780 forks source link

Confusing running TurboVNC and Websockify #548

Closed lifetooeasy closed 1 year ago

lifetooeasy commented 1 year ago

Why these two commands gives different outputs?

1) websockify -v --heartbeat 30 5906 -- /bin/sh -c cd /home/ && /opt/TurboVNC/bin/vncserver -verbose -geometry 1680x1050 :6 -SecurityTypes None

Desktop 'TurboVNC: xxxx started on display :3

2) vncserver -SecurityTypes None :6

Desktop 'TurboVNC: xxxx:6 started on display :6

Scenario 2 is the desired behavior, how to do that using websockify?

P.S in the directory /tmp/.X11-unix we have X0, X1, X2, X4