Tools / Port checker / Port 2222
Port 2222: DirectAdmin / Alt SSH
Common alternate SSH port, DirectAdmin control panel, or Forgejo/GitLab container SSH listener.
Should port 2222 be open?
Better restricted to the addresses that need it, or placed behind a VPN or reverse proxy. Use Ed25519 SSH keys rather than relying on port obscurity for security.
Port 2222 still shows closed after router port forwarding?
If you opened TCP port 2222 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 2222 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 2222 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 2222 proto tcpRocky, Alma or CentOS with firewalld:
sudo firewall-cmd --permanent --add-port=2222/tcp && sudo firewall-cmd --reloadWindows Server, in PowerShell as administrator:
New-NetFirewallRule -DisplayName "Port 2222" -Direction Inbound -Protocol TCP -LocalPort 2222 -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/2222?host=one.one.one.one)<a href="https://privatebyte.com/tools/port-checker/2222?host=one.one.one.one"><img src="https://privatebyte.com/tools/badge/live.svg?host=one.one.one.one&port=2222" alt="one.one.one.one:2222 status via PrivateByte" height="22"></a>[url=https://privatebyte.com/tools/port-checker/2222?host=one.one.one.one][img]https://privatebyte.com/tools/badge/live.svg?host=one.one.one.one&port=2222[/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.