阅读502 返回首页    go iPhone_iPad_Mac_apple


change vnc listening port from 5900 to other?

In macOS versions prior to Sierra, it was possible to change the VNC (screen sharing) port from the default 5900 to something else by editing the file /System/Library/LaunchDaemons/com.apple.screensharing.plist.  However, macOS Sierra disallows changing this file, even when running via sudo in Terminal.app.

 

I have reasons for not wanting to use this well-known port.  Do I need to disable SIP prior to changing it, or can I accomplish the same thing by editing the /etc/services file, and changing the TCP/UDP ports for the rfb service?

 

What's the best way to change this port under Sierra?



You will need to disable SIP first.

 

From About System Integrity Protection on your Mac - Apple Support,

 

System Integrity Protection includes protection for these parts of the system:

  • /System
  • /usr
  • /bin
  • /sbin
  • Apps that are pre-installed with OS X


最后更新:2017-09-18 23:34:10

  上一篇:go If I factory reset my iPhone will my iCloud be ...
  下一篇:go Upgrading to El Capitan