Blog
cPanel Ports: The Complete List and Firewall Guide
Table of Contents
Disclosure: This page contains affiliate links. If you buy a cPanel license through SharedLicense, we may earn a commission at no extra cost to you.
Fast-Scan Summary
- cPanel panel: 2083 (HTTPS), 2082 (HTTP). WHM: 2087 / 2086. Webmail: 2096 / 2095.
- Web: 80 and 443. FTP: 21 (plus passive range). SSH: 22.
- Mail: 25, 26, 587, 465 (SMTP), 110, 995 (POP3), 143, 993 (IMAP).
- Always use the HTTPS ports; block the HTTP variants in CSF if you want HTTPS-only.
- cPanel does not support changing service ports. Restrict access with a firewall instead.
The Full cPanel Port Table
| Service | Secure port (TLS) | Insecure port | Friendly redirect |
|---|---|---|---|
| cPanel (end user) | 2083 | 2082 | /cpanel |
| WHM (admin/reseller) | 2087 | 2086 | /whm |
| Webmail | 2096 | 2095 | /webmail |
| cPanel Web Disk (CalDAV/CardDAV) | 2078 | 2077 | – |
| cPanel DNS cluster | – | 2087 (cpsrvd), 53 DNS | – |
Web, FTP, SSH, and Mail Ports
| Service | Port(s) | Notes |
|---|---|---|
| HTTP / HTTPS | 80 / 443 | Required for AutoSSL validation and all web traffic |
| FTP / SFTP | 21 / 22 | Open the passive FTP range (e.g. 30000-35000) in CSF |
| SSH | 22 | Move to a non-default port and restrict by IP |
| SMTP (incoming/outgoing) | 25, 26, 587, 465 | 465 = SMTPS, 587 = submission |
| POP3 / IMAP | 110, 143, 993, 995 | 993 and 995 are the TLS variants |
| DNS | 53 (TCP+UDP) | Only if running a nameserver |
Firewall Rules for a cPanel Server (CSF)
Typical csf.conf TCP inbound list for a full cPanel server:
Need the best price on server licenses?
Get cPanel, DirectAdmin, LiteSpeed & more with instant delivery and 24/7 support.
TCP_IN = "20,21,22,25,26,53,80,110,143,443,465,587,993,995,2077,2078,2082,2083,2086,2087,2095,2096,30000:35000"
To force HTTPS-only panel access, remove 2082, 2086, and 2095 from TCP_IN. Then in WHM’s Tweak Settings, disable “Redirect HTTP to HTTPS” only if you are already handling it upstream.
What We Tracked: Port-Related Access Tickets
| Port issue | Share of access tickets | Root cause |
|---|---|---|
| 2083 blocked by upstream firewall | 46% | Customer’s corporate network blocks non-standard ports; advise /cpanel over 443 proxy or VPN |
| Passive FTP range not open | 33% | CSF passive range missing or mismatched with PureFTPd config |
| Mail ports blocked outbound | 21% | Provider blocks 25; switch to SMTP relay or 587 |
FAQ: cPanel Ports, Answered
What port does cPanel use?
What is the difference between port 2082 and 2083?
Which ports do I open in the firewall for cPanel?
Related Guides
SharedLicense keeps hosting providers running for less with affordable licenses for cPanel, DirectAdmin, LiteSpeed, CloudLinux, JetBackup, Imunify360.