Port 2086 (WHM over HTTP)
Key facts
- Port
- 2086
- Protocols
- TCP
- Range
- Registered port, 1024-49151
- IANA service name
- gnunet
- 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 2086
Port 2086 is registered by IANA for the gnunet service (GNUnet), but on hosting servers it is best known as the port of WHM, cPanel's server administration interface, over plain HTTP without encryption.
Common use (unofficial): according to the cPanel documentation, WHM accepts TCP connections on port 2086, and its encrypted version runs on port 2087. This use is not the IANA assignment; it is documented by the software vendor.
What port 2086 is used for
- Server administration: WHM (WebHost Manager) is the interface where the server administrator creates cPanel accounts, sets up packages, services and security, and manages the whole server.
- Resellers: reseller account holders log in to WHM to manage their customers' accounts.
- License updates: according to the cPanel documentation, the license update mechanism needs at least one of ports 2082, 2083, 2086, 2087 or 2096 open to incoming connections, and the server must be able to make outgoing TCP connections to port 2089 on the licensing servers.
Today you almost always log in to WHM through the encrypted port 2087.
Port 2086 in the firewall
Since port 2086 sends the server administration password unencrypted, it is better to keep it closed and log in to WHM only through port 2087, restricted to the server administrators' IP addresses:
- UFW:
ufw deny 2086/tcpandufw allow from 203.0.113.10 to any port 2087 proto tcp - firewalld:
firewall-cmd --permanent --remove-port=2086/tcpandfirewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="203.0.113.10" port port="2087" protocol="tcp" accept'
Before you close the interface ports, make sure at least one of them stays open for the license update mechanism, for example port 2083, which site owners use.
Risks and security
WHM gives full control of the server, so a password exposed on an unencrypted connection may give access to the entire server. These settings remove the risk:
- In WHM, on the Tweak Settings screen, turn on the Always redirect to SSL/TLS option, which redirects every unencrypted login to the encrypted connection.
- Restrict port 2087 to the server administrators' IP addresses.
- Turn on two-factor authentication for every user who logs in to WHM, and make sure cPHulk, the protection against password guessing, is running.
- Give resellers and other administrators their own accounts with limited privileges, instead of sharing the root password.
Commands to check and configure
-
ss -tlnp | grep ':2086 'Checks whether any service is listening on port 2086 on the server, and which process it is (requires root privileges).
-
curl -sI http://server.example.com:2086Shows the response headers from port 2086. When the redirect to SSL is on, the response points to an encrypted address.
-
nc -zv server.example.com 2086Checks from your computer whether port 2086 is open on the server.
-
ufw deny 2086/tcpBlocks incoming connections to port 2086 (UFW).
-
ufw allow from 203.0.113.10 to any port 2087 proto tcpAllows logins to WHM on the encrypted port 2087 only from the specified IP address (UFW).
-
firewall-cmd --permanent --remove-port=2086/tcpDeletes a firewalld rule that opened port 2086. Then run firewall-cmd --reload.
-
firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="203.0.113.10" port port="2087" protocol="tcp" accept'Allows logins to port 2087 in firewalld only from the specified IP address. Then run firewall-cmd --reload.
Port 2086 in the IANA registry
| Port | Protocol | Service | IANA registry description |
|---|---|---|---|
| 2086 | TCP | gnunet | GNUnet |
| 2086 | UDP | gnunet | GNUnet |
Data source: IANA Service Name and Transport Protocol Port Number Registry (opens in a new tab)
Port 2086 FAQ
What's the difference between port 2086 and port 2087?
Both ports lead to the same WHM interface. On port 2086 the connection is unencrypted, and on port 2087 it is encrypted with SSL/TLS. Use port 2087 to manage the server.
What's the difference between WHM and cPanel?
WHM is the server administration interface: there you create accounts, set up packages and manage services and security. cPanel is the interface of each hosting account, where the site owner manages their files, mail and domains, through port 2083.
Can I close port 2086 in the firewall?
Yes, once all WHM logins go through port 2087. Just make sure one of the interface ports stays open for the cPanel license update mechanism, for example port 2083.
Why is a WHM login on port 2086 redirected to another address?
When the Always redirect to SSL/TLS option is turned on in Tweak Settings, WHM redirects every unencrypted login to the encrypted connection. This is the intended behavior, and it keeps the password encrypted.