Skip to content

Common network ports and protocols

Both CompTIA Network+ (N10-009) and CompTIA Security+ (SY0-701) expect instant recall of common ports: the number, the transport, and which secure service replaces which insecure one. Drill the main table until the port number alone triggers the service name, then spend your remaining time on the secure/insecure pairs and the handful of lookalike ports the exams use as distractors. Transports shown are the ones the exams grade; several services are registered for both TCP and UDP.

Ports to know cold

Port / transportServiceRemember for the exam
20 TCPFTP (data)Active-mode data channel; pairs with 21
21 TCPFTP (control)Logins and commands, all cleartext
22 TCPSSH, SFTP, SCPOne port, three services; SFTP rides inside SSH
23 TCPTelnetCleartext remote shell; the fix is always SSH on 22
25 TCPSMTPServer-to-server mail relay, not client submission
53 UDP/TCPDNSUDP for queries; TCP for zone transfers and large responses
67, 68 UDPDHCPServer listens on 67, client on 68; broadcast-based
69 UDPTFTPNo authentication; firmware and config file pushes
80 TCPHTTPCleartext web; redirect it to 443
88 TCP/UDPKerberosActive Directory ticket authentication; needs accurate time
110 TCPPOP3Download-and-delete mail; secure twin is 995
123 UDPNTPTime sync; clock skew breaks Kerberos and log correlation
137, 138 UDP; 139 TCPNetBIOS (name, datagram, session)Legacy Windows networking; 139 carries SMB sessions
143 TCPIMAPMail stays on the server; secure twin is 993
161 UDPSNMPManager polls agents (get/set)
162 UDPSNMP trapsAgents push unsolicited alerts to the manager
389 TCP/UDPLDAPDirectory lookups (Active Directory); cleartext by default
443 TCPHTTPSHTTP over TLS; HTTP/3 uses QUIC on UDP 443
445 TCPSMBDirect-hosted Windows file sharing; no NetBIOS needed
465 TCPSMTPSMail submission with implicit TLS from the first byte
514 UDPSyslogUnencrypted, connectionless log forwarding
587 TCPSMTP submissionClient mail submission, upgraded with STARTTLS; N10-009 objectives label it SMTPS
636 TCPLDAPSLDAP wrapped in TLS
993 TCPIMAPSIMAP over TLS
995 TCPPOP3SPOP3 over TLS
1433 TCPMicrosoft SQL ServerDatabase engine; never expose to the internet
1521 TCPOracle Database (TNS listener)Oracle's default listener port
3306 TCPMySQL / MariaDBCommon open-source database port
3389 TCPRDPRemote Desktop; classic brute-force target, gate behind a VPN
5060 TCP/UDPSIPVoIP call signaling, unencrypted
5061 TCPSIP over TLSEncrypted signaling only; the voice itself is RTP/SRTP
6514 TCPSyslog over TLSSecure syslog; note the switch to TCP from UDP 514

When two numbers appear together (20/21, 67/68, 161/162), expect the exam to test which side is which.

Secure vs insecure pairs

Insecure (port)Secure replacement (port)Exam angle
Telnet (23)SSH (22)Different protocol and different port
HTTP (80)HTTPS (443)TLS for the web; HSTS enforces it
FTP (20/21)SFTP (22) or FTPS (990 implicit)SFTP is SSH-based, FTPS is TLS-based; they are not the same protocol
SNMPv1/v2c (161/162)SNMPv3 (161/162)Same ports; security comes from the version, not the port
LDAP (389)LDAPS (636)Directory binds carry credentials; encrypt them
POP3 (110)POP3S (995)Add TLS, new port
IMAP (143)IMAPS (993)Add TLS, new port
SMTP cleartext (25)Submission 587 (STARTTLS) or SMTPS 46525 stays for server-to-server relay
Syslog (514 UDP)Syslog over TLS (6514 TCP)Transport changes from UDP to TCP
SIP (5060)SIP over TLS (5061)Signaling encrypted; pair with SRTP for the media

Easily confused

PortsThe trapKeep them straight
69 vs 21TFTP vs FTPTrivial FTP = UDP 69, no logins; full FTP = TCP 21 with authentication
161 vs 162SNMP poll vs trapManager asks on 161; agents volunteer alerts on 162
445 vs 139Modern vs legacy SMB445 is SMB direct over TCP; 139 is SMB riding a NetBIOS session
465 vs 587Implicit TLS vs STARTTLS465 is encrypted from the first byte; 587 starts plain and upgrades with STARTTLS
67 vs 68DHCP server vs clientServer listens on 67, client on 68; server comes first numerically
993 vs 995IMAPS vs POP3SAlphabetical matches numerical: IMAP (993) before POP3 (995)

Reading a sheet is recognition; the exam tests recall. The fastest way to make this stick is answering questions that use it.

Common questions

Is DNS TCP or UDP?

Both, on port 53. Standard name queries use UDP, while zone transfers and responses too large for a single UDP datagram use TCP. If an exam question mentions zone transfers, the answer involves TCP 53.

What is the difference between port 465 and port 587?

Both are for client mail submission. Port 465 (SMTPS) uses implicit TLS, meaning the session is encrypted from the very first byte, while 587 starts in plaintext and upgrades to encryption with the STARTTLS command. Port 25 remains reserved for server-to-server relay.

Does SNMPv3 use a different port than SNMPv1 or v2c?

No. Every SNMP version polls on UDP 161 and sends traps on UDP 162; version 3 adds authentication and encryption inside the protocol itself. This is a favorite trick because it is the one secure upgrade on the list that does not change ports.

Is SFTP the same thing as FTPS?

No, and both exams test this. SFTP is a separate file-transfer protocol that runs inside an SSH session on TCP 22, while FTPS is classic FTP wrapped in TLS, with implicit mode commonly on port 990. SFTP has nothing to do with TLS or port 21.

More free practice tests

Back to all cert900 exams