March 12th, 2023

Busy Port 5000 on macOS

Understand why port 5000 may be occupied on macOS and learn how to fix this behaviour

By running portPid 5000 (aliased to lsof -i :5000), I found that the process that was using that port was macOS Control Centre.

This is due to the option airplay receiver checked in the macOS Settings

You might also like: