Port 5000 β Flask / Python Web / Docker Registry
Port 5000 is the default port used by Python Flask, ASP.NET Core, and the official Docker Registry. On macOS Monterey and later, Apple AirPlay Receiver binds to 5000 by default.
5000
TCP
python, flask, AirPlayXPCHelper
5000/tcp
Instant Terminal Fixes for Port 5000
lsof -i :5000kill -9 $(lsof -t -i:5000)sudo ufw allow 5000/tcpGet-NetTCPConnection -LocalPort 5000Stop-Process -Id (Get-NetTCPConnection -LocalPort 5000).OwningProcess -Forcedocker run -p 5000:5000 -d registry:2Common Error Encountered
OSError: [Errno 48] Address already in use (Often macOS AirPlay on port 5000)
Security Advisory & Hardening
On macOS, disable "AirPlay Receiver" in System Settings > Sharing if port 5000 causes conflict errors with your Python or Docker servers.
Port 5000 Questions & Answers
Common questions regarding default services, kill commands, and firewall configurations.
Port 5000 is commonly used for Flask / Python Web / Docker Registry. Port 5000 is the default port used by Python Flask, ASP.NET Core, and the official Docker Registry. On macOS Monterey and later, Apple AirPlay Receiver binds to 5000 by default.