Change Mac OS 10.7 Lion VNC Server listening port

user619891 picture user619891 · Jan 18, 2012 · Viewed 9.3k times · Source

Is there any way to change the default vnc server port on a Mac. For the latest mac os version 10.7 Lion. The built in screen sharing, vnc server, is set to the default port of 5900. Would there be a plist hack for this by any chance?

Answer

Ari Braginsky picture Ari Braginsky · Apr 4, 2012

Ok. I spent a significant amount of time on this one myself. Short answer, it's not possible to change the default listening port of the built in VNC server on OSX Lion (except by possibly modifying the /private/etc/services file to change the rfb service to listen to something other than 5900 for TCP/UDP).

If that doesn't work, you can install the beta version of the Vine VNC server (http://www.testplant.com/support/downloads/vine/), have it listen on whatever port you want, and then connect to it with whatever free VNC client you wish (most recommend Chicken of the VNC http://sourceforge.net/projects/cotvnc/).