Default port of the Flask development server and of the Docker Registry. Since macOS Monterey, the AirPlay Receiver also listens on 5000 and 7000, which is why Flask apps on a Mac suddenly get 403 errors. Synology DSM also uses 5000.
Default port of the Flask development server and of the Docker Registry. Since macOS Monterey, the AirPlay Receiver also listens on 5000 and 7000, which is why Flask apps on a Mac suddenly get 403 errors. Synology DSM also uses 5000.
Expose only to trusted sources. The Flask dev server (especially with debug=True and its Werkzeug console) must never be exposed: the debugger allows code execution. A registry on 5000 without auth lets anyone pull or push images.
IANA lists port 5000 as unassigned. No service is registered for it.
sudo ss -tlnp 'sport = :5000'sudo lsof -nP -i :5000sudo netstat -tlnp | grep ':5000 'netstat -ano | findstr :5000Get-NetTCPConnection -LocalPort 5000 -State Listen | Select LocalAddress,OwningProcessnc -vz -w 5 HOST 5000Test-NetConnection HOST -Port 5000Replace 203.0.113.10 with the address or network you trust. With ufw, make sure the default incoming policy is deny.
sudo ufw allow from 203.0.113.10 to any port 5000 proto tcpsudo iptables -A INPUT -p tcp --dport 5000 -s 203.0.113.10 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 5000 -j DROPsudo nft add rule inet filter input ip saddr 203.0.113.10 tcp dport 5000 accept
sudo nft add rule inet filter input tcp dport 5000 dropNew-NetFirewallRule -DisplayName 'TCP 5000 trusted' -Direction Inbound -Protocol TCP -LocalPort 5000 -RemoteAddress 203.0.113.10 -Action AllowAll port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.