Port reference › Web

Port 5000 · Dev server / Synology DSM

Flask dev server, Synology NAS admin

TCP Web Exposure risk: Medium

What is port 5000 used for?

Default for the Flask dev server and the Synology NAS admin UI (DSM) over HTTP. On macOS 12+, the AirPlay receiver already uses 5000, so Flask may fail to start.

Registered port (1024-49151): the range used by ordinary applications.

Security notes

An exposed NAS admin UI attracts ransomware. Use QuickConnect or a VPN; if you must open it, use HTTPS (5001) with two-factor auth.

Allow port 5000 through the firewall

This port is risky to expose, so the commands below allow only the IPs you specify.

# Replace 203.0.113.10/32 with the IP or network you want to allow
sudo ufw allow from 203.0.113.10/32 to any port 5000 proto tcp
sudo ufw status

Check whether port 5000 is open

sudo ss -tlpn | grep ':5000 '

Ports used together

Other web ports

80 HTTP 443 HTTPS 8080 HTTP alternate 8443 HTTPS alternate 8000 Dev server 3000 Dev server / Grafana 8888 Jupyter 1080 SOCKS proxy