43

I fetched the data below using lsof -i:5000 and ps aux commands.

COMMAND    PID   USER        FD   TYPE  DEVICE              SIZE/OFF  NODE NAME
ControlCe  6560  myusername  22u  IPv4  0xab7124fb1106e193  0t0       TCP  *:commplex-main (LISTEN)
PID   PATH
6560  /System/Library/CoreServices/ControlCenter.app/Contents/MacOS/ControlCenter

I worry this is not normal and don’t understand why that app should have an open network listening connection. Can someone explain if this is normal?

1 Answer 1

56

Port 5000 is now used for Airplay as well as port 7000 as of macOS Monterey. So yes, it's normal ! Apple decided to use those ports even though a lot of developers use those ports by default.

macOS 12 Monterey

You can toggle that off by unchecking Ariplay Receiver option in System Preferences > Sharing, at the bottom of the services list.

system preferences app, sharing

macOS 13 Ventura and newer

As of macOS 13 Ventura and thanks to @bryanbraun's comment, you can toggle off the option in "System Settings…" > General > AirDrop & Handoff > AirPlay Receiver

system settings app, AirDrop & Handoff setting page

5
  • 3
    See also chrishannah.me/monterey-blocking-ports-5000-and-7000
    – nohillside
    Commented Nov 22, 2021 at 17:57
  • Do you know if there is a way to do this via CLI?
    – slifty
    Commented Jan 18, 2022 at 18:18
  • 4
    Note: If you're running into this on Ventura, the new place to disable this is in System Preferences > General > AirDrop & Handoff > Airplay Receiver
    – bryanbraun
    Commented Jan 11, 2023 at 19:30
  • Wow @tama how did you get to that conclusion? I would like to know
    – Erick
    Commented Mar 31, 2023 at 18:31
  • @Erick I should have made a supposition more than a statement
    – tama
    Commented Mar 31, 2023 at 21:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .