Django runserver, python -m http.server, uvicorn/FastAPI examples, Splunk web and many apps' internal HTTP ports.
Django runserver, python -m http.server, uvicorn/FastAPI examples, Splunk web and many apps' internal HTTP ports.
Expose only to trusted sources. Development servers should stay on localhost. python -m http.server on 0.0.0.0 shares the whole directory with anyone who can reach it.
sudo ss -tlnp 'sport = :8000'sudo lsof -nP -i :8000sudo netstat -tlnp | grep ':8000 'netstat -ano | findstr :8000Get-NetTCPConnection -LocalPort 8000 -State Listen | Select LocalAddress,OwningProcessnc -vz -w 5 HOST 8000Test-NetConnection HOST -Port 8000Replace 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 8000 proto tcpsudo iptables -A INPUT -p tcp --dport 8000 -s 203.0.113.10 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 8000 -j DROPsudo nft add rule inet filter input ip saddr 203.0.113.10 tcp dport 8000 accept
sudo nft add rule inet filter input tcp dport 8000 dropNew-NetFirewallRule -DisplayName 'TCP 8000 trusted' -Direction Inbound -Protocol TCP -LocalPort 8000 -RemoteAddress 203.0.113.10 -Action AllowAll port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.