Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I get x11vnc to listen on a different port besides the default VNC port (5900)?

0
Posted

How can I get x11vnc to listen on a different port besides the default VNC port (5900)?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123