LEARN · Ports
PORTS TO KNOW
Port numbers are the part of networking exams that feels most like rote memorization, and a flat list of 40 numbers is hard to keep in your head. It gets much easier when you group the ports by what they do and learn them in pairs. This page covers the ports that show up again and again in CompTIA Network+ and Cisco CCNA study material, plus the details exams like to test: TCP or UDP, which side listens, and which number is the secure version.
Almost every port here is in the Port Guesser quiz, so you can drill them as you go.
Web
| Port | Protocol | Service | What to remember |
|---|---|---|---|
| 80 | TCP | HTTP | Unencrypted web traffic. Mostly redirects to 443 today. |
| 443 | TCP | HTTPS | HTTP over TLS. HTTP/3 also uses UDP 443 (QUIC). |
| 8080 | TCP | HTTP alternate | Proxies, app servers and admin consoles. |
| 8443 | TCP | HTTPS alternate | The TLS version of 8080. |
Remote access
| Port | Protocol | Service | What to remember |
|---|---|---|---|
| 22 | TCP | SSH | Encrypted shell. SFTP and SCP run inside SSH, so they use 22 too. |
| 23 | TCP | Telnet | Plain text, including passwords. Replace with SSH. |
| 3389 | TCP | RDP | Windows Remote Desktop. Never expose it straight to the internet. |
| 5900 | TCP | VNC | Cross-platform remote desktop. Display :1 is 5901, and so on. |
File transfer and sharing
| Port | Protocol | Service | What to remember |
|---|---|---|---|
| 20, 21 | TCP | FTP | 21 is the control channel. 20 is data in active mode. |
| 69 | UDP | TFTP | No login and no encryption. Used for switch configs, firmware and PXE boot. |
| 445 | TCP | SMB | Windows file shares. Block it at the internet edge. |
| 139 | TCP | NetBIOS session | Legacy SMB over NetBIOS. Modern Windows uses 445. |
| 2049 | TCP/UDP | NFS | Unix and Linux file shares. |
| Port | Protocol | Service | What to remember |
|---|---|---|---|
| 25 | TCP | SMTP | Server-to-server mail relay. ISPs often block it for home users. |
| 587 | TCP | SMTP submission | Where mail clients send mail, normally with STARTTLS. |
| 465 | TCP | SMTPS | Submission with TLS from the first byte (RFC 8314). |
| 110 / 995 | TCP | POP3 / POP3S | Download mail, usually removing it from the server. |
| 143 / 993 | TCP | IMAP / IMAPS | Sync mail that stays on the server. |
The exam trick here is direction. SMTP sends mail; POP3 and IMAP fetch it. A client usually needs two of these configured: 587 or 465 to send, and 993 or 995 to receive.
Name and address services
| Port | Protocol | Service | What to remember |
|---|---|---|---|
| 53 | TCP/UDP | DNS | UDP for lookups, TCP for zone transfers and large answers. |
| 853 | TCP | DNS over TLS | Encrypted DNS between client and resolver. |
| 67 / 68 | UDP | DHCP | The server listens on 67, the client on 68. |
| 123 | UDP | NTP | Time sync. Kerberos and logs break when clocks drift. |
DHCP is the favorite trick question. The client broadcasts from UDP 68 to UDP 67, and the server answers back to 68. If you forget which is which, remember the server comes first.
Directory and authentication
| Port | Protocol | Service | What to remember |
|---|---|---|---|
| 88 | TCP/UDP | Kerberos | Active Directory logins. Very sensitive to clock skew. |
| 389 / 636 | TCP | LDAP / LDAPS | Directory queries, plain or over TLS. |
| 3268 | TCP | LDAP Global Catalog | Forest-wide AD searches. |
| 1812 / 1813 | UDP | RADIUS | Authentication, then accounting. Used by Wi-Fi and VPN logins. |
| 49 | TCP | TACACS+ | Cisco device admin logins. Encrypts the whole payload, unlike RADIUS. |
Network management and logging
| Port | Protocol | Service | What to remember |
|---|---|---|---|
| 161 | UDP | SNMP | The manager polls agents on 161. |
| 162 | UDP | SNMP trap | Agents send alerts to the manager on 162. |
| 514 | UDP | Syslog | Plain-text logs. The TLS version uses TCP 6514. |
Routing and VPN
These come up more on CCNA than Network+, and they’re the deep cuts in Port Guesser.
| Port | Protocol | Service | What to remember |
|---|---|---|---|
| 179 | TCP | BGP | The only common routing protocol that runs over TCP. |
| 520 | UDP | RIP | Legacy distance-vector routing. |
| 500 | UDP | IKE | Starts an IPsec VPN. |
| 4500 | UDP | IPsec NAT traversal | IPsec moves here when there’s NAT in the path. |
| 1194 | UDP | OpenVPN | Default port; it can also run over TCP. |
| 51820 | UDP | WireGuard | A software default, not an IANA assignment. |
OSPF and EIGRP don’t appear in the table because they don’t use ports at all. They run directly on IP as protocol numbers 89 and 88. That’s a classic exam distractor.
How to learn them
- Learn by group, not by number. “Mail is 25, 587, 465, 110, 143, 993, 995” is one fact, not seven.
- Learn the secure pairs together. 80/443, 110/995, 143/993, 389/636 and 53/853 halve the work.
- Say the protocol out loud. TCP or UDP is often part of the question, and a firewall rule with the wrong protocol still fails.
- Drill both directions. Exams ask “what runs on 389?” and “which port does LDAP use?” Port Guesser alternates between the two every round.
A note on real networks
These numbers are conventions recorded in the IANA registry, not laws. Administrators move services all the time, and attackers do too. When you’re troubleshooting, a port number is a strong hint about what you’re looking at, but confirm it with the process name or the protocol before you act on it.
CompTIA and Network+ are trademarks of CompTIA, Inc. Cisco and CCNA are trademarks of Cisco Systems, Inc. This guide is independent and not endorsed by either company.
Practice it: Port Guesser puts this into a daily game, free in your browser.
FAQ
How many ports do I need to memorize for Network+?
Study guides usually list 25 to 40. The ones in the first six groups on this page cover nearly all of them. Learning them by job and in plain and secure pairs is much faster than memorizing a flat list.
Is DNS TCP or UDP?
Both, on port 53. Ordinary lookups use UDP. Zone transfers between DNS servers use TCP, and so do answers too large for a single UDP packet. A firewall that only allows UDP 53 will break those.
What is the difference between ports 20 and 21?
FTP uses two connections. Port 21 carries commands such as login and directory listing. In active mode, the server sends file data from port 20. In passive mode, which most clients use today, data goes over a high port the server picks.
Why are some ports listed as TCP/UDP?
IANA usually registers a service on both protocols even when it only uses one in practice. Where both really matter, as with DNS, Kerberos and LDAP, the exam may ask about either.