Guides

Port Numbers List: The Doors to Check When Email Won't Send or cPanel Won't Open

80, 443, 587, 2083, 3306: what each port does, where to look when email or cPanel fails, and which ports must never be open to the internet.

27 NOV 20268 min readBy Dijipal
Port Numbers List: The Doors to Check When Email Won't Send or cPanel Won't Open

Article

A client calls in the morning: “I emailed you, but I got no reply, and your messages never reach us either.” Meanwhile, your hosting control panel refuses to load. More often than you would think, both problems share one cause: a closed or wrong port. A port numbers list shows which “door” each service on a server talks through: 80 and 443 for the web, 25, 587, 465 and 993 for email, 2083 for cPanel, 22 for remote access.

Below, we first set the idea straight in two minutes, then group the ports a business owner or site administrator actually meets. A checklist closes the article.

What is a port? The IP address is the building, the port is the door

Your server’s IP address is like a building’s street address. Inside, though, there is accounting, a warehouse, a reception desk, a security room, and each needs its own door. A port is that door number. A website, an email service and a database can run on the same IP without colliding, because each listens on its own port.

  • Range: 0–65535. According to the IANA registry, 0–1023 are system (well-known) ports, 1024–49151 are user ports, and 49152–65535 is the dynamic/private range.
  • TCP vs UDP: TCP sets up a connection and confirms delivery; web, email and SSH mostly use it. UDP is lighter and does no confirmation, which suits short exchanges such as DNS queries.
  • Assigned vs habit: 80, 443 and 22 are tied to known services. 3000 and 8080 are only developer habit; any free port can be used.

80 and 443: your website’s front door

Port 80 is for HTTP and port 443 is for HTTPS. When a visitor types your address, the connection arrives on one of these two. Today, port 80’s main job is usually to send the visitor on to 443.

  • Without an SSL certificate, the browser shows a “not secure” warning and visitors who were about to fill in a form leave.
  • Keep both ports open in the firewall; if 80 is closed, visitors arriving via “http://” cannot be redirected and the page fails.
  • Keep the redirect to one hop: http to https, and www or non-www to a single form. Longer chains hurt speed and search signals.

“Email won’t send”: which port do you check?

Email is where port confusion costs the most, because sending, receiving and server-to-server transfer run on different ports.

  • 25 (SMTP): The port mail servers use to pass mail to each other. It is not meant for sending from Outlook or a phone app. Many cloud providers block it outbound; Google Cloud’s documentation, for example, states that connections to external destinations on port 25 are blocked while 587 and 465 are not restricted.
  • 587 (submission, STARTTLS): The standard way for a mail client to send. The connection starts in the clear and is upgraded to encryption.
  • 465 (submission, SSL/TLS): The connection is encrypted from the first byte. RFC 8314 prefers this implicit TLS approach; both ports are valid and widely used.
  • 110 / 995 (POP3 / POP3 SSL): Downloads mail to the device.
  • 143 / 993 (IMAP / IMAP SSL): Keeps mail on the server so phone and computer stay in sync. If you use several devices, choose IMAP.

A four-minute order of checks

  1. Can’t send: is the SMTP port 587 (STARTTLS) or 465 (SSL)? If it says 25, change it.
  2. Can’t receive: is it 993 for IMAP or 995 for POP3, with SSL selected?
  3. Broke after changing network: your office or home provider may restrict outgoing ports; try 465 instead of 587.
  4. Still stuck: check that the username is the full email address and the server name matches your domain.

22, 21 and 53: remote access and name resolution

  • 22 (SSH): Encrypted command-line access to the server. SFTP runs on the same port, so file transfer needs no extra door.
  • 21 (FTP): Sends passwords and files in plain text. Use SFTP (22) wherever possible; keep FTP only briefly for legacy work that has no encrypted option.
  • 53 (DNS): The system that turns a domain name into an IP. It is mostly UDP and sometimes TCP. If you do not run your own DNS server, you do not need to open it; your host or DNS provider manages your records.

cPanel and WHM ports: when the panel won’t open

According to cPanel’s documentation, each service has a plain and an SSL port; the second number is the encrypted one:

  • cPanel: 2082 / 2083
  • WHM (server management): 2086 / 2087
  • Webmail: 2095 / 2096

In practice, always use the bold SSL one: https://yourdomain.com:2083.

If your office network blocks 2083

Corporate networks and some cafés block unusual ports. cPanel offers proxy subdomains for this: cpanel.yourdomain.com, whm.yourdomain.com, webmail.yourdomain.com. They arrive over 80/443 and are forwarded to the matching SSL port. Try this first when a port is blocked. If the subdomains are disabled at your host, ask support to enable them.

Database ports: never open these to the internet

  • 3306: MySQL / MariaDB (most sites, WordPress included)
  • 5432: PostgreSQL
  • 6379: Redis
  • 27017: MongoDB

The rule is simple: a database should be reachable only from the server where the application runs, or from a private network. Redis’s own security documentation warns that leaving its port unprotected from outside access can have a major impact, for example a single FLUSHALL command wiping the whole dataset. If you need remote access, use an SSH tunnel or a firewall rule that allows only your own IP instead of opening the port to everyone. For wider site protection, see our article on WordPress attacks and how to defend against them.

3000, 8080, 5678: development ports and “port already in use”

Common in development: 3000 (the usual port for Node and Next.js projects), 8080 (alternative HTTP) and 5678 (the n8n automation tool’s default). They are not reserved, only defaults.

“Port already in use” means another process is holding that port, often an old terminal session you forgot to close. The fix takes two steps:

  1. Find what holds the port. Linux/macOS: lsof -i :3000 (or ss -ltnp on Linux). Windows: netstat -ano | findstr :3000.
  2. Stop the process. Linux/macOS: kill PID. Windows: taskkill /PID number /F. Or start your project on a different port.

If you do not recognise the process, find out what it is before killing it; it could be a database or another application.

Security checklist: keep only the needed doors open

  • Firewall: Use a tool such as CSF and default to “closed”; open only 80, 443, your mail ports if you use them, and management ports.
  • Restrict admin ports: Where possible, allow SSH and WHM ports only from known IP addresses.
  • Changing the SSH port reduces noise from automated scans but is not protection by itself; key-based login and disabling passwords matter far more.
  • Close database ports to the outside (see the section above).
  • Scan yourself: nmap your-server-ip lists which ports look open from outside. Scan only servers you own or have written permission to test.
  • Regular upkeep: Switching off an unused service is the cheapest way to reduce open ports. For a maintenance routine, see how website maintenance is done.

A port numbers list to keep handy

  • 80 HTTP · 443 HTTPS
  • 25 SMTP (server to server) · 587 / 465 sending · 110 / 995 POP3 · 143 / 993 IMAP
  • 22 SSH/SFTP · 21 FTP · 53 DNS
  • 2082 / 2083 cPanel · 2086 / 2087 WHM · 2095 / 2096 Webmail
  • 3306 MySQL · 5432 PostgreSQL · 6379 Redis · 27017 MongoDB
  • 3000, 8080 development habit · 5678 n8n

If you run a business in Nicosia or elsewhere in the TRNC and email to overseas clients is failing, this list is the first place to look. If the fix belongs with your server or hosting provider, you can reach the team covering your area through our Nicosia service page.

Frequently asked questions

How many ports are in a port numbers list?

There are 65,536 ports in total (0–65535). For daily work you need only about a dozen: 80, 443, 22, 25, 587, 465, 993, 2083, 3306.

Should I choose port 465 or 587?

Both are valid. 465 encrypts the connection from the start; 587 upgrades it afterwards (STARTTLS). Use whichever your mail program or provider recommends, and try the other if one fails.

cPanel port 2083 won’t open. What now?

First try cpanel.yourdomain.com; this proxy subdomain arrives over 443. If that fails, check whether your connection or your host’s firewall blocks 2083.

Is it safe to open a database port remotely?

Leaving it open to everyone is not safe. If needed, allow only specific IP addresses or use an SSH tunnel.

In short

Knowing your ports turns “the site won’t load” or “email won’t send” from guesswork into a door-by-door check. If you would rather hand off server settings, email and firewall work, take a look at our web design and development service or request a quote.

Share: WhatsApp X LinkedIn
← All posts

Let's build your next project.

Tell us what you need — we reply within 24 hours on business days with a tailored quote.