Default port of Grafana, and of many dev servers: Create React App, Next.js, Express, Rails (rails server) and Gitea.
Default port of Grafana, and of many dev servers: Create React App, Next.js, Express, Rails (rails server) and Gitea.
Expose only to trusted sources. Dev servers are not built for the internet; keep them on localhost. For Grafana, change the default admin/admin password, disable sign-up and keep it patched (path traversal CVE-2021-43798).
sudo ss -tlnp 'sport = :3000'sudo lsof -nP -i :3000sudo netstat -tlnp | grep ':3000 'netstat -ano | findstr :3000Get-NetTCPConnection -LocalPort 3000 -State Listen | Select LocalAddress,OwningProcessnc -vz -w 5 HOST 3000Test-NetConnection HOST -Port 3000Replace 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 3000 proto tcpsudo iptables -A INPUT -p tcp --dport 3000 -s 203.0.113.10 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 3000 -j DROPsudo nft add rule inet filter input ip saddr 203.0.113.10 tcp dport 3000 accept
sudo nft add rule inet filter input tcp dport 3000 dropNew-NetFirewallRule -DisplayName 'TCP 3000 trusted' -Direction Inbound -Protocol TCP -LocalPort 3000 -RemoteAddress 203.0.113.10 -Action AllowAll port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.