How can I get x11vnc to listen on a different port besides the default VNC port (5900)?
Use something like, e.g., “x11vnc -rfbport 5901” to force it to use port 5901 (this is VNC display :1.) If something else is using that port x11vnc will exit immediately. If you do not supply the -rfbport option, it will autoprobe starting at 5900 and work its way up to 5999 looking for a free port to listen on. In that case, watch for the PORT=59xx line to see which port it found, then subtract 5900 from it for the VNC display number to enter into the VNC Viewer(s). The “-N” option will try to match the VNC display number to the X display (e.g. X11 DISPLAY of :5 (port 6005) will have VNC display :5 (port 5905).) Also see the “-autoport n” option to indicated at which value the auto probing should start at. Q-11: My Firewall/Router doesn’t allow VNC Viewers to connect to x11vnc. See the Firewalls/Routers discussion.
Related Questions
- Can I have x11vnc advertise its VNC service and port via mDNS / Zeroconf (e.g. Avahi) so VNC viewers on the local network can detect it automatically?
- How can I get x11vnc to listen on a different port besides the default VNC port (5900)?
- Can I make the VNC server listen on a different port number rather than 5900?