Port 2222 (DirectAdmin)
Key facts
- Port
- 2222
- Protocols
- TCP
- Range
- Registered port, 1024-49151
- IANA service name
- EtherNet-IP-1, EtherNet/IP-1
- Unofficial use
- The use described on this page is not the IANA assignment for this port. Source (opens in a new tab) Checked on 30.11.2026
IANA assigns ports in this range to services on request, under RFC 6335.
About port 2222
Port 2222 is registered by IANA for the EtherNet/IP-1 service (EtherNet/IP I/O) used in industrial networks, but on hosting servers it is best known as the login port of the DirectAdmin control panel.
Common use (unofficial): according to the DirectAdmin documentation, the panel listens only on port 2222 by default, over TCP, and the port number is set by the port option in the directadmin.conf file. This use is not the IANA assignment; it is documented by the software vendor.
What port 2222 is used for
- Server administrator: logs in at an address such as https://server.example.com:2222 and manages the server, packages and users.
- Resellers and site owners: log in on the same port, and each sees their own level of the panel: managing customers, or managing the account's sites, mail and databases.
- Connections from external tools: billing systems and tools that connect to the DirectAdmin API use the same port.
According to the documentation, the ssl option in the directadmin.conf file turns on encryption for the panel, and it is on by default.
Port 2222 in the firewall
DirectAdmin lists port 2222 among the ports to open in the firewall for logging in to the panel:
- UFW:
ufw allow 2222/tcp - firewalld:
firewall-cmd --permanent --add-port=2222/tcp
When only you log in to the panel, restrict the port to your IP addresses:
- UFW:
ufw allow from 203.0.113.10 to any port 2222 proto tcp - firewalld:
firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="203.0.113.10" port port="2222" protocol="tcp" accept'
When you restrict access to specific addresses, also delete any earlier rule that opened the port to everyone, or that general rule will keep allowing access from any address.
On a server where resellers and site owners log in to the panel, keep the port open and rely on strong passwords and blocking of failed attempts.
Risks and security
A control panel that is open to the internet attracts automated password-guessing attempts, and anyone who logs in as an administrator can change anything on the server. These settings protect the panel:
- Always log in over an encrypted connection, using the server's hostname with a valid SSL certificate, for example from Let's Encrypt.
- Use a strong, unique password, and turn on two-factor authentication for administrator accounts.
- Turn on a tool such as CSF, which temporarily blocks addresses with repeated failed login attempts.
- When only you use the panel, restrict port 2222 to your IP addresses.
Commands to check and configure
-
systemctl status directadminShows whether the DirectAdmin service is running, and the latest lines of its log.
-
journalctl -u directadmin.serviceShows the DirectAdmin service log, when the panel doesn't start.
-
tail /var/log/directadmin/error.logShows the latest errors in the DirectAdmin error log.
-
ss -tlnp | grep ':2222 'Checks that the panel is listening on port 2222, and on which address (requires root privileges).
-
ufw allow from 203.0.113.10 to any port 2222 proto tcpAllows logins to the panel only from the specified IP address (UFW).
-
firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="203.0.113.10" port port="2222" protocol="tcp" accept'Allows logins to the panel in firewalld only from the specified IP address. Then run firewall-cmd --reload.
-
csf -a 203.0.113.10Adds the IP address to the CSF allow list. Note: an address on this list is allowed on every port on the server.
Port 2222 in the IANA registry
| Port | Protocol | Service | IANA registry description |
|---|---|---|---|
| 2222 | TCP | EtherNet-IP-1 | EtherNet/IP I/O IANA assigned this well-formed service name as a replacement for "EtherNet/IP-1". |
| 2222 | TCP | EtherNet/IP-1 | EtherNet/IP I/O |
| 2222 | UDP | EtherNet-IP-1 | EtherNet/IP I/O IANA assigned this well-formed service name as a replacement for "EtherNet/IP-1". |
| 2222 | UDP | EtherNet/IP-1 | EtherNet/IP I/O |
Data source: IANA Service Name and Transport Protocol Port Number Registry (opens in a new tab)
Port 2222 FAQ
How do I log in to DirectAdmin?
Open the server's hostname with port 2222 in your browser, for example https://server.example.com:2222, and log in with your username and password. The DirectAdmin commands page has useful commands for managing the server from the command line.
Why can't I connect to DirectAdmin on port 2222?
In most cases, the firewall on the server, or on the network you connect from, blocks the port. Check from your computer with nc -zv server.example.com 2222, and on the server with systemctl status directadmin that the service is running. On corporate networks that block non-standard ports, try connecting from a different network.
Is the connection to DirectAdmin encrypted?
Yes. According to the DirectAdmin documentation, encryption is on by default. To avoid a browser warning, log in with the server's hostname, which has a valid SSL certificate. The Let's Encrypt page explains free certificates.
How do I get a server with DirectAdmin?
You can add a license for the control panel of your choice to a Linux VPS: DirectAdmin, cPanel or Plesk, and our team installs it on the server.