Port 7000

What’s running on port 7000 on my Mac?

If port 7000 is busy and you didn’t start anything, it’s AirPlay Receiver. macOS has listened there since Monterey, along with port 5000.

Commonly used by

  • AirPlay Receiver (macOS)ControlCenter listens on 7000 for AirPlay streams and screen mirroring to your Mac.
  • Apache CassandraUses 7000 for node-to-node traffic (clients use 9042).
  • Your own serversA round number some tutorials and test servers pick, which then collides with AirPlay.

Confirm it

lsof -nP -iTCP:7000 -sTCP:LISTEN
COMMAND    PID  USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
ControlCe  612   you   11u  IPv4  0x...       0t0  TCP *:7000 (LISTEN)
ControlCe  612   you   12u  IPv6  0x...       0t0  TCP *:7000 (LISTEN)

lsof truncates command names to nine characters, so ControlCe is ControlCenter. To see the full path:

ps -o pid,command -p 612

It should be /System/Library/CoreServices/ControlCenter.app/.... That’s the real Apple process, not malware; see what is ControlCenter.

With Stat Space: statspace port 7000.

Free port 7000

System Settings › General › AirDrop & Handoff › turn off AirPlay Receiver. Run the lsof command again: 7000 and 5000 are both free. Turning it back on later reclaims them, so a server you start on 7000 meanwhile will block AirPlay rather than the other way round.

If you need AirPlay to your Mac regularly, leave it on and move your app instead. Ports like 7070, 7100 or 8000 are rarely taken on a Mac.

If it’s something else

If lsof shows java, it’s probably Cassandra (cassandra.yaml has storage_port: 7000) or another JVM service. If it’s node, python or ruby, it’s one of your own servers; find its folder with lsof -a -p <PID> -d cwd -Fn | tail -1 and stop it with kill <PID>.

Is AirPlay Receiver exposed?

It listens on all interfaces (*:7000) because other devices need to find it. Who may connect is controlled by “Allow AirPlay for”: Current User, Anyone on the Same Network, or Everyone. On shared networks, Current User or turning it off is the safer choice, and “Require password” adds a code.

Seeing it live

Stat Space lists every listening port with its full process name and path, so ControlCenter on 7000 doesn’t get confused with one of your dev servers, and your own servers show their project folder next to it.

Questions

What is ControlCenter listening on port 7000?

It's the AirPlay Receiver service. It lets an iPhone, iPad or another Mac AirPlay video, audio or mirror its screen to your Mac.

Will turning off AirPlay Receiver break anything?

Only receiving AirPlay. You can still AirPlay from your Mac to an Apple TV or speaker.

Can I just kill ControlCenter to free port 7000?

No. It also draws Control Center and parts of the menu bar, and launchd restarts it immediately, port and all. Turn off the receiver in System Settings instead.

Get started

Know what your Mac is doing, without adding to it.

Free, no account. Pro is $9.99 once for the first 100 buyers.