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?

MacBook Pro (13-inch, 2017, 4 TBT3), macOS Sierra (10.12.5), 16GB, 1TB, 3.5GHz i7

Posted on Sep 18, 2017 8:18 AM

Reply
2 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

change vnc listening port from 5900 to other?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.