WHATPORT(5000) whatport.net WHATPORT(5000)
5000

Flask dev server, Docker registry, macOS AirPlay Receiver

Flask's development server port, the Docker registry's container port, and the port macOS quietly took over.

TCP IANA: commplex-main

Description

flask run serves on 127.0.0.1:5000, and the Docker distribution registry listens on 5000 inside its container. On macOS Monterey and later the AirPlay Receiver service binds 5000 by default, which is why Flask developers on Macs see "Address already in use" out of nowhere; the fix is to turn AirPlay Receiver off in System Settings or pick another port. IANA has it registered as commplex-main.

Exposed to the internet?

Do not expose

Flask's docs say the dev server is not designed to be secure, and an unauthenticated registry on 5000 lets anyone push and pull images.

Check it yourself

$ sudo lsof -nP -iTCP:5000 -sTCP:LISTEN

See also

Seen this on your network? Beige Box scans your Wi-Fi and shows every open port on every device — and its Ports tool links straight back here.

Get Beige Box →

also available as JSON · Markdown

Corrections or a missing port? Reply @rimrocksystems.