Tools / Port checker / Port 4000
Port 4000: TiDB / Phoenix / Alt Dev
MySQL-compatible SQL port for TiDB distributed databases and Elixir Phoenix dev servers.
Should port 4000 be open?
Better restricted to the addresses that need it, or placed behind a VPN or reverse proxy. Keep database listeners private; put reverse proxies in front of web apps.
Port 4000 still shows closed after router port forwarding?
If you opened TCP port 4000 on your router and host firewall yet external probes from Dallas, London, and Amsterdam still report No reply or Closed, your broadband ISP (such as Starlink, T-Mobile 5G Home Internet, or fiber CGNAT) likely places your router behind 100.64.0.0/10 Carrier-Grade NAT.
Verify your carrier in 5 seconds with our CGNAT Checker, or forward inbound TCP & UDP port 4000 cleanly to your home server using a dedicated public IPv4 on PrivateByte Static IP Gateway ($3/mo) (or our open-source Docker WireGuard sidecar).
Opening port 4000 in a server firewall
Replace 203.0.113.10 with the address that needs access, so only that address can reach the port.
Ubuntu or Debian with UFW:
sudo ufw allow from 203.0.113.10 to any port 4000 proto tcpRocky, Alma or CentOS with firewalld:
sudo firewall-cmd --permanent --add-port=4000/tcp && sudo firewall-cmd --reloadWindows Server, in PowerShell as administrator:
New-NetFirewallRule -DisplayName "Port 4000" -Direction Inbound -Protocol TCP -LocalPort 4000 -Action AllowThen check that the service listens on 0.0.0.0 (not only 127.0.0.1) and test again above.
Embed live server status & latency badge
Running a game server, public API, or open-source node? Generate a 5-minute cached live SVG status & millisecond RTT badge for your GitHub README, server list, or forum signature:
[](https://privatebyte.com/tools/port-checker/4000?host=one.one.one.one)<a href="https://privatebyte.com/tools/port-checker/4000?host=one.one.one.one"><img src="https://privatebyte.com/tools/badge/live.svg?host=one.one.one.one&port=4000" alt="one.one.one.one:4000 status via PrivateByte" height="22"></a>[url=https://privatebyte.com/tools/port-checker/4000?host=one.one.one.one][img]https://privatebyte.com/tools/badge/live.svg?host=one.one.one.one&port=4000[/img][/url]Check another port (150 documented ports)
Run your service on a PrivateByte KVM NVMe server (from $5.99/mo): dedicated IPv4, unmetered traffic, and every port yours to control.