PORT_ERROR on Mac

On newer MacOS versions the user must explicitly authorize new extensions. PORT_ERROR on Mac is typically caused by the ZeroTier tun/tap driver failing to load.

If you are having this problem (especially on High Sierra and newer) try visiting the "General" tab of the "Security & Privacy" system perferences dialog. There you will be able to approve new extensions. Approve any ZeroTier extensions and then try restarting the ZeroTier service by opening a terminal and typing:

Followed by:
Restarting the system will also accomplish this.

NOTE that authorization of kernel extensions will NOT work in remote desktop sessions. Apple requires it to be done directly on the system console. Via a remote session you can click the button but it will have no effect. We are not aware of any known work-around for this.

ALSO if the mouse/trackpad is emulated by a 3rd party application (MagicPrefs, BetterTouchTool, Synergy, etc.), it won't work. 

If it's still not working

Via wanjochan on github:

Here my steps for your fellows reference:

  • sudo launchctl unload /Library/LaunchDaemons/com.zerotier.one.plist
  • sudo launchctl load /Library/LaunchDaemons/com.zerotier.one.plist
  • open "Security and Privacy" and try click Allow ZeroTier /* maybe no effects....nevermind, just continue */
  • REBOOT the OSX /* VERY IMPORTANT */
  • open "Security and Privacy" and try click Allow ZeroTier AGAIN /* if it still there */
  • sudo launchctl unload /Library/LaunchDaemons/com.zerotier.one.plist
  • sudo launchctl load /Library/LaunchDaemons/com.zerotier.one.plist
  • zerotier-cli listnetworks /* now the PORT_ERROR should be gone */
  • ping your nodes on the network should now being OK