Common Network Ports
Ports are numbered doors on a machine: the port in a connection decides which program answers. Firewalls and servers live and die by getting this list right.
The ports that matter
| 80 | HTTP | Web, unencrypted (redirects to HTTPS) |
| 443 | HTTPS | Web, encrypted: the modern default |
| 53 | DNS | Queries (UDP) and zone transfers (TCP) |
| 25 | SMTP | Server-to-server mail relay |
| 587 | SMTP submission | User outgoing mail with STARTTLS |
| 465 | SMTPS | User outgoing mail, implicit TLS |
| 993 | IMAPS | Receiving mail, encrypted |
| 995 | POP3S | Receiving mail (POP), encrypted |
| 22 | SSH | Remote server administration |
| 3389 | RDP | Windows remote desktop |
Well-known vs ephemeral
- 0-1023 are well-known ports reserved for core services; servers listen there.
- 49152-65535 are ephemeral: your browser picks a random one as the source port for each connection.
- Firewalls block inbound on ephemeral ranges by default; that is correct and normal.
Frequently asked questions
Which ports must be open for a website?+
Inbound 80 and 443 on the web server; everything else can stay closed. Management ports (22/3389) should be restricted to known IPs.
Does closing ports improve security?+
Reducing the exposed surface always helps, but hardening the services behind open ports matters more.
How do I check open ports?+
From outside: an online port scanner against your address. From the server: ss -tlnp or netstat -tlnp.
What is port forwarding?+
Telling a NAT router to send inbound traffic on one port to a specific internal device: the workaround for hosting behind NAT.
How do I verify my changes?+
Run the record lookup to confirm live values, then check the propagation checker for worldwide agreement. Both tools run in your browser.
What TTL should I use?+
3600 seconds is the default. Drop to 300 a day before changes so cutover is quick, then restore.
Related
- DNS port numbers →
- SMTP preflight →
- Email ports guide →
- Email ports 25, 465, and 587, the mail-specific subset
- IMAP vs SMTP, retrieval vs sending
- SMTP tester, watch the port-level dialogue live
Last verified: 2026-10-28