{"id":2069,"date":"2025-06-21T11:20:12","date_gmt":"2025-06-21T11:20:12","guid":{"rendered":"https:\/\/hostrago.com\/knowledge-base\/?p=2069"},"modified":"2025-06-21T11:20:14","modified_gmt":"2025-06-21T11:20:14","slug":"listening-ports-of-cpanel-whm","status":"publish","type":"post","link":"https:\/\/hostrago.com\/knowledge-base\/listening-ports-of-cpanel-whm\/","title":{"rendered":"Listening Ports of cPanel\/WHM: Complete Guide for 2025"},"content":{"rendered":"\n<p>Whether you&#8217;re running a VPS, a dedicated server, or even a cloud hosting platform, knowing the <strong>listening ports of cPanel\/WHM<\/strong> is critical. These ports are how your server communicates with the outside world \u2014 from secure logins to webmail access, database management, and beyond.<\/p>\n\n\n\n<p><strong>Listening ports of cPanel\/WHM<\/strong> refer to specific communication endpoints on your server that are used for essential services such as WHM login, FTP, SMTP, DNS, and cPanel access. Understanding these ports is vital not just for connectivity, but also for configuring firewalls, avoiding conflicts, and securing your hosting environment.<\/p>\n\n\n\n<p>In this comprehensive guide by <a class=\"\" href=\"https:\/\/www.hostrago.com\/\">HostraGo<\/a>, we\u2019ll break down all the ports you need to know, how to manage them, and best practices for keeping them secure.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Are Listening Ports?<\/h2>\n\n\n\n<p>A <strong>listening port<\/strong> is a network endpoint used by software applications to accept incoming connections. Think of it like a door on your server \u2014 each service (e.g., FTP or HTTP) listens on a specific door (port number).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">For example:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Port 2087<\/strong> \u2192 WHM (secure login)<\/li>\n\n\n\n<li><strong>Port 2083<\/strong> \u2192 cPanel (secure login)<\/li>\n\n\n\n<li><strong>Port 21<\/strong> \u2192 FTP (file transfers)<\/li>\n\n\n\n<li><strong>Port 25<\/strong> \u2192 SMTP (sending email)<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Why Are Ports Important in cPanel\/WHM?<\/h2>\n\n\n\n<p>Every service in your hosting environment operates through a specific port. If a required port is closed or blocked by a firewall, services will not work correctly. That\u2019s why knowing which ports cPanel\/WHM listens on is essential for:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Securing server access<\/li>\n\n\n\n<li>Configuring CSF or firewalls<\/li>\n\n\n\n<li>Troubleshooting connectivity<\/li>\n\n\n\n<li>Setting up external integrations<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Default Listening Ports of cPanel\/WHM<\/h2>\n\n\n\n<p>Here&#8217;s a complete table of <strong>default ports used by cPanel and WHM<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Port<\/th><th>Service<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>2087<\/td><td>WHM (SSL)<\/td><td>Secure WHM access<\/td><\/tr><tr><td>2086<\/td><td>WHM (non-SSL)<\/td><td>Unsecure WHM access<\/td><\/tr><tr><td>2083<\/td><td>cPanel (SSL)<\/td><td>Secure cPanel access<\/td><\/tr><tr><td>2082<\/td><td>cPanel (non-SSL)<\/td><td>Unsecure cPanel access<\/td><\/tr><tr><td>2096<\/td><td>Webmail (SSL)<\/td><td>Secure webmail<\/td><\/tr><tr><td>2095<\/td><td>Webmail (non-SSL)<\/td><td>Unsecure webmail<\/td><\/tr><tr><td>21<\/td><td>FTP<\/td><td>File transfers<\/td><\/tr><tr><td>22<\/td><td>SSH<\/td><td>Secure shell access<\/td><\/tr><tr><td>25<\/td><td>SMTP<\/td><td>Outgoing email<\/td><\/tr><tr><td>465<\/td><td>SMTP (SSL)<\/td><td>Encrypted email sending<\/td><\/tr><tr><td>110<\/td><td>POP3<\/td><td>Receiving email<\/td><\/tr><tr><td>995<\/td><td>POP3 (SSL)<\/td><td>Encrypted email receiving<\/td><\/tr><tr><td>143<\/td><td>IMAP<\/td><td>Incoming mail<\/td><\/tr><tr><td>993<\/td><td>IMAP (SSL)<\/td><td>Encrypted incoming mail<\/td><\/tr><tr><td>53<\/td><td>DNS<\/td><td>Domain name resolution<\/td><\/tr><tr><td>3306<\/td><td>MySQL<\/td><td>Database access<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\ud83d\uded1 <strong>Important:<\/strong> Block unused ports to reduce security risks. If you don\u2019t use FTP or POP3, disable those ports.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common Ports Explained<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"609\" src=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Common-Ports-Explained-1024x609.webp\" loading=\"lazy\" alt=\"Common Ports Explained\" class=\"wp-image-2071\" srcset=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Common-Ports-Explained-1024x609.webp 1024w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Common-Ports-Explained-300x179.webp 300w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Common-Ports-Explained-768x457.webp 768w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Common-Ports-Explained-1536x914.webp 1536w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Common-Ports-Explained-2048x1219.webp 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">How to Check Open Ports on Your Server<\/h2>\n\n\n\n<p>To view listening ports on your Linux server via SSH:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>netstat -tulnp<br><\/code><\/pre>\n\n\n\n<p>Or using <code>ss<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ss -tuln<br><\/code><\/pre>\n\n\n\n<p>This will show which ports are open, what services are listening, and their protocol (TCP\/UDP).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Open or Close Ports Safely<\/h2>\n\n\n\n<p>Use the <strong>CSF (ConfigServer Security &amp; Firewall)<\/strong> plugin in WHM:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <strong>WHM \u2192 Plugins \u2192 ConfigServer Security &amp; Firewall<\/strong><\/li>\n\n\n\n<li>Edit <strong>TCP_IN<\/strong> and <strong>TCP_OUT<\/strong> to open\/close ports<\/li>\n\n\n\n<li>Save changes and restart CSF<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">For example:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To open port 3306: add <code>3306<\/code> to TCP_IN<\/li>\n\n\n\n<li>To close FTP: remove <code>21<\/code> from TCP_IN<\/li>\n<\/ul>\n\n\n\n<p>Don\u2019t forget to whitelist your IP during changes to avoid getting locked out.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Security Best Practices for Port Management<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use <strong>SSL ports only (2083, 2087, 2096)<\/strong><\/li>\n\n\n\n<li>Disable unused ports like 2082, 2095, 21<\/li>\n\n\n\n<li>Use <strong>firewalls (CSF\/UFW)<\/strong> to restrict access<\/li>\n\n\n\n<li>Enable <strong>Fail2Ban or ModSecurity<\/strong> for extra protection<\/li>\n\n\n\n<li>Regularly scan open ports using tools like <a class=\"\" href=\"https:\/\/nmap.org\/\" target=\"_blank\" rel=\"noopener\">Nmap<\/a><\/li>\n<\/ul>\n\n\n\n<p>Want to secure your server better? <a>HostraGo VPS Hosting<\/a> gives you root access and advanced firewall tools.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently Asked Questions<\/h2>\n\n\n\n<p><strong>Q1: Can I change the default ports in cPanel\/WHM?<\/strong><br>No. cPanel reserves these ports, and modifying them can break functionality.<\/p>\n\n\n\n<p><strong>Q2: How can I test if a port is open?<\/strong><br>Use <code>telnet yourdomain.com port<\/code> or free online tools like YouGetSignal<\/p>\n\n\n\n<p><strong>Q3: Is it safe to keep FTP port 21 open?<\/strong><br>Not really. FTP is insecure. Use <strong>SFTP over port 22<\/strong> instead.<\/p>\n\n\n\n<p><strong>Q4: What port does Let\u2019s Encrypt or AutoSSL use?<\/strong><br>Ports <strong>80 (HTTP)<\/strong> and <strong>443 (HTTPS)<\/strong> must remain open for SSL certificates to renew.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Final Thoughts<\/h2>\n\n\n\n<p>Knowing and managing the <strong>listening ports of cPanel\/WHM<\/strong> is critical for every web server admin. These ports are the gateways to your server\u2019s essential services \u2014 from WHM login to email delivery.<\/p>\n\n\n\n<p>If you\u2019re using <a class=\"\" href=\"https:\/\/www.hostrago.com\/\">HostraGo hosting services<\/a>, you get full access to port management via WHM and firewall tools for complete control.<\/p>\n\n\n\n<p>Need help setting it up? <a href=\"https:\/\/hostrago.com\/contact-us\">Contact our support<\/a> \u2014 we\u2019re available 24\/7 for assistance.<\/p>\n\n\n\n<p>Looking to level up? Check out our powerful <a href=\"https:\/\/hostrago.com\/self-managed-vps\/\">VPS Hosting in India<\/a> with advanced security and root access.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Whether you&#8217;re running a VPS, a dedicated server, or even a cloud hosting platform, knowing the listening ports of cPanel\/WHM is critical. These ports are&#8230;<\/p>\n","protected":false},"author":1,"featured_media":2070,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,26],"tags":[179,373,375,370,374,376,176,372],"class_list":["post-2069","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel","category-whm","tag-cpanel","tag-cpanel-ports","tag-firewall-ports","tag-hostrago-tutorials","tag-linux-ports","tag-port-security","tag-web-hosting","tag-whm-ports"],"menu_order":0,"_links":{"self":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/2069","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=2069"}],"version-history":[{"count":1,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/2069\/revisions"}],"predecessor-version":[{"id":2072,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/2069\/revisions\/2072"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/media\/2070"}],"wp:attachment":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=2069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=2069"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=2069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}