Port 5000: App / UPnP

TCP 5000 is the port for Flask dev server, Synology DSM, macOS AirPlay Receiver. Not for NAS admin panels; use the vendor's relay or a VPN.

Port 5000 at a glance
ServiceFlask dev server, Synology DSM, macOS AirPlay Receiver
ProtocolTCP
Exposure riskMedium: expose with care
RangeRegistered (1024–49151)

Your public IP is pre-filled. The test connects over TCP from NetKit's server, so it shows what the internet sees.

What port 5000 does

Flask's development server defaults to 5000; Synology DSM's web UI uses 5000 (HTTP) and 5001 (HTTPS); since macOS Monterey the AirPlay Receiver also listens on 5000, which surprises developers.

Should port 5000 be open?

Not for NAS admin panels; use the vendor's relay or a VPN.

Find what's listening on port 5000

  • Linux: sudo ss -tulpn | grep :5000
  • macOS: sudo lsof -nP -i :5000
  • Windows: netstat -ano | findstr :5000, then look up the PID in Task Manager.

Open or block it in a firewall

  • ufw: sudo ufw allow 5000/tcp (or deny)
  • firewalld: sudo firewall-cmd --add-port=5000/tcp --permanent && sudo firewall-cmd --reload
  • Windows: New-NetFirewallRule -DisplayName "Port 5000" -Direction Inbound -Protocol TCP -LocalPort 5000 -Action Allow

Port assignment per the IANA Service Name and Transport Protocol Port Number Registry. Test several ports at once with the port scanner, or any port with the open port checker.

Questions about port 5000

What is port 5000 used for?
Flask dev server, Synology DSM, macOS AirPlay Receiver. Flask's development server defaults to 5000; Synology DSM's web UI uses 5000 (HTTP) and 5001 (HTTPS); since macOS Monterey the AirPlay Receiver also listens on 5000, which surprises developers.
Is port 5000 TCP or UDP?
TCP. App / UPnP uses TCP port 5000.
Is it safe to open port 5000?
Medium: expose with care. Not for NAS admin panels; use the vendor's relay or a VPN.
How do I check if port 5000 is open?
Use the checker on this page: it connects to your host on TCP 5000 from the internet. Locally, run nc -vz host 5000 (macOS/Linux) or Test-NetConnection host -Port 5000 (PowerShell). To see what is listening on your own machine, run ss -tulpn | grep :5000 (Linux) or netstat -ano | findstr :5000 (Windows).

← Port 3389 (RDP) · Port 5060 (SIP) →