Ports and protocols cheat sheet
The 48 ports most worth knowing for the CompTIA® A+® Core 1 (220-1201) exam, with what each one carries and the secure alternative where there is one.
Port numbers and transports are checked against the IANA Service Name and Transport Protocol Port Number Registry. The notes are our own summaries. The CompTIA A+ Core 1 pack, in the next app update, drills these with spaced repetition. For practice questions, see the ports and protocols topic.
| Port | Transport | Service | What to know |
|---|---|---|---|
| 20 | TCP | FTP data | File Transfer Protocol data channel; cleartext. Prefer SFTP or FTPS. |
| 21 | TCP | FTP control | File Transfer Protocol commands and logins in cleartext. Prefer SFTP or FTPS. |
| 22 | TCP | SSH | Encrypted remote shell; also carries SFTP and SCP file transfers. |
| 23 | TCP | Telnet | Cleartext remote terminal. Replace with SSH. |
| 25 | TCP | SMTP | Mail transfer between servers. |
| 49 | TCP | TACACS+ | Device administration AAA (commonly TACACS+ over TCP 49). |
| 53 | UDP | DNS | Name resolution queries (UDP; TCP for large responses and zone transfers). |
| 53 | TCP | DNS over TCP | Zone transfers and responses too large for UDP. |
| 67 | UDP | DHCP server | DHCP/BOOTP server side. |
| 68 | UDP | DHCP client | DHCP/BOOTP client side. |
| 69 | UDP | TFTP | Trivial File Transfer: no authentication; used for network boot and device configs. |
| 80 | TCP | HTTP | Web traffic in cleartext. |
| 88 | TCP | Kerberos | Ticket-based network authentication (Active Directory). |
| 110 | TCP | POP3 | Mailbox retrieval in cleartext. Prefer POP3S (995). |
| 123 | UDP | NTP | Time synchronization; accurate time matters for logs and Kerberos. |
| 137 | UDP | NetBIOS name service | Legacy Windows name service; block at the perimeter. |
| 139 | TCP | NetBIOS session | Legacy SMB over NetBIOS; block at the perimeter. |
| 143 | TCP | IMAP | Mailbox access in cleartext. Prefer IMAPS (993). |
| 161 | UDP | SNMP | Device monitoring queries; use SNMPv3 for authentication and encryption. |
| 162 | UDP | SNMP traps | Unsolicited alerts from devices to the manager. |
| 389 | TCP | LDAP | Directory queries; cleartext unless protected with StartTLS. |
| 443 | TCP | HTTPS | HTTP over TLS. |
| 445 | TCP | SMB | Windows file sharing (SMB directly over TCP); never expose to the internet. |
| 465 | TCP | SMTP submission over TLS | Mail submission with implicit TLS. |
| 500 | UDP | IKE | IPsec key exchange (ISAKMP/IKE). |
| 514 | UDP | Syslog | Traditional syslog over UDP; unauthenticated and unencrypted. |
| 587 | TCP | SMTP submission | Mail submission from clients, usually upgraded with STARTTLS. |
| 636 | TCP | LDAPS | LDAP over TLS. |
| 853 | TCP | DNS over TLS | Encrypted DNS (DoT). |
| 989 | TCP | FTPS data | FTP over TLS, data channel (implicit TLS). |
| 990 | TCP | FTPS control | FTP over TLS, control channel (implicit TLS). |
| 993 | TCP | IMAPS | IMAP over TLS. |
| 995 | TCP | POP3S | POP3 over TLS. |
| 1433 | TCP | Microsoft SQL Server | Database listener; keep off the internet. |
| 1701 | UDP | L2TP | Layer 2 Tunneling Protocol; usually paired with IPsec for encryption. |
| 1723 | TCP | PPTP | Legacy VPN with known cryptographic weaknesses; avoid. |
| 1812 | UDP | RADIUS authentication | AAA for network access, often behind 802.1X. |
| 1813 | UDP | RADIUS accounting | Accounting records for RADIUS sessions. |
| 3306 | TCP | MySQL | Database listener; keep off the internet. |
| 3389 | TCP | RDP | Remote Desktop Protocol; restrict to VPN or a jump host. |
| 4500 | UDP | IPsec NAT traversal | IKE and ESP encapsulated in UDP to cross NAT. |
| 4739 | UDP | IPFIX | IP Flow Information Export collectors. |
| 5060 | UDP | SIP | VoIP call signaling in cleartext. |
| 5061 | TCP | SIP over TLS | VoIP signaling protected with TLS. |
| 5432 | TCP | PostgreSQL | Database listener; keep off the internet. |
| 5900 | TCP | VNC | Remote Framebuffer protocol used by VNC remote desktop. |
| 6514 | TCP | Syslog over TLS | Encrypted, reliable syslog transport. |
| 8080 | TCP | HTTP alternate | Common alternate port for web proxies and admin consoles. |
How to remember them
- Learn the pairs: a cleartext protocol and its secure version (HTTP 80 and HTTPS 443, LDAP 389 and LDAPS 636, IMAP 143 and IMAPS 993, POP3 110 and POP3S 995).
- Group by job: remote access, email, name and time services, directory and authentication, file transfer, databases.
- Questions often give the port inside a firewall or port-forwarding rule, so practice reading the number in context.