Port numbers quiz

Every CompTIA exam — A+, Network+, Security+ — expects you to know your ports cold. This endless drill covers the 35 ports they actually test, in both directions: name the port, and name the protocol. No signup, no limit.

Loading the drill…

The full list

PortProtocol
20/21FTP
22SSH/SCP/SFTP
23Telnet
25SMTP
49TACACS+
53DNS
67/68DHCP
69TFTP
80HTTP
88Kerberos
110POP3
119NNTP
123NTP
135RPC/DCOM
137-139NetBIOS
143IMAP
161/162SNMP
389LDAP
443HTTPS
445SMB
465SMTPS
514Syslog
587SMTP (STARTTLS)
636LDAPS
993IMAPS
995POP3S
1433MS-SQL
1521Oracle SQL
1645/1646RADIUS
1812/1813RADIUS
3306MySQL
3389RDP
5060/5061SIP
6514Syslog TLS
8080HTTP Alt

Ports are the easy 5%

The rest of the exam is scenarios. Take the free 25-question diagnostic to see how ready you actually are — and get a daily plan for everything else.

Take the free diagnostic

Frequently asked questions

Which port numbers do I need to memorize for CompTIA exams?

The core set is about 35 ports: the classics (SSH 22, DNS 53, HTTP 80, HTTPS 443, RDP 3389), the email family (SMTP 25/587, POP3 110/995, IMAP 143/993), and infrastructure protocols (DHCP 67/68, SNMP 161/162, LDAP 389/636). Network+ leans hardest on ports; Security+ loves asking which secure variant replaces which insecure one.

What's the best way to memorize port numbers?

Short, frequent drills beat one long cram. Do 10–20 questions here daily, and pay attention to the pairs — secure vs insecure versions (HTTP 80 → HTTPS 443, LDAP 389 → LDAPS 636, Telnet 23 → SSH 22) are the most-tested pattern. Spaced repetition automates the schedule: miss a port and it comes back right before you'd forget it.

Do I need to know TCP vs UDP for each port?

Yes — especially for Network+. The commonly tested UDP ones: DHCP (67/68), TFTP (69), NTP (123), SNMP (161/162), and syslog (514). DNS famously uses both: UDP for queries, TCP for zone transfers.