Common ports cheat sheet

Port numbers are free points on Security+, Network+, and CCNA, and they are pure memorization. This is the set that shows up again and again, with the one fact about each port that exam questions are really testing. Use the search box to drill the ones you keep missing.

PortProtocolServiceWhat to remember
20/21TCPFTPData rides on 20, commands on 21. Sends passwords in cleartext, which is why exams keep asking what replaces it: FTPS or SFTP.
22TCPSSHEncrypted remote login and administration. SFTP and SCP also ride on this port.
23TCPTelnetCleartext remote login. On an exam, the answer is always to replace it with SSH.
25TCPSMTPServer to server mail relay. Clients usually submit mail on 587 instead.
49TCP/UDPTACACS+Cisco's AAA protocol for device administration. Encrypts the whole payload, unlike RADIUS.
53UDP/TCPDNSUDP for normal lookups, TCP for zone transfers and oversized answers.
67/68UDPDHCPThe server listens on 67, the client on 68. Remember the DORA exchange: Discover, Offer, Request, Acknowledge.
69UDPTFTPNo authentication at all. Used for firmware and config files, and risky for exactly that reason.
80TCPHTTPUnencrypted web traffic. Best practice is to redirect everything here to 443.
88TCP/UDPKerberosThe authentication backbone of Active Directory.
110TCPPOP3Downloads mail and usually deletes it from the server. Mostly legacy now.
123UDPNTPTime synchronization. Broken clocks break Kerberos logins and ruin log timelines.
139TCPNetBIOS SessionLegacy Windows file sharing. Modern SMB runs directly on 445, so block this.
143TCPIMAPMail stays on the server and syncs across devices.
161/162UDPSNMP161 is for polling devices, 162 is for traps they send back. Only version 3 encrypts.
389TCP/UDPLDAPDirectory lookups against services like Active Directory. Cleartext unless StartTLS or LDAPS protects it.
443TCPHTTPSWeb traffic wrapped in TLS. QUIC also uses this port, over UDP.
445TCPSMBWindows file and printer sharing. EternalBlue and WannaCry spread through this port, and exams have not forgotten it.
465/587TCPSMTP submissionHow mail clients send. 587 with STARTTLS is the modern standard; 465 is the legacy implicit TLS port that came back.
514UDPSyslogThe default path for shipping logs to a collector or a SIEM.
636TCPLDAPSLDAP wrapped in TLS from the start. Exam questions love contrasting it with plain 389.
993TCPIMAPSIMAP over TLS.
995TCPPOP3SPOP3 over TLS.
1194UDP/TCPOpenVPNDefault OpenVPN port. UDP is the usual choice for speed.
1433TCP/UDPMicrosoft SQL ServerA classic scan target. It should never be reachable from the internet.
1723TCPPPTPLegacy VPN protocol with broken encryption. Know it so you can spot it and replace it.
1812/1813UDPRADIUS1812 handles authentication, 1813 handles accounting. Only the password is encrypted.
2049TCP/UDPNFSNetwork file sharing for Unix and Linux systems.
3306TCPMySQLDefault port for MySQL and MariaDB databases.
3389TCP/UDPRDPThe top brute force target on the internet. Put it behind a VPN or a gateway, never wide open.
5060/5061TCP/UDPSIP5060 sets up VoIP calls, 5061 adds TLS. Signaling only; the voice itself usually rides RTP.
5432TCPPostgreSQLDefault Postgres port, and a favorite finding in scan reports.
5900TCPVNCRemote screen sharing with historically weak security. Tunnel it through SSH or a VPN.
8080TCPAlternate HTTPCommon for proxies, admin consoles, and app servers in development.

A pattern worth learning: whenever an exam shows you a cleartext protocol, the secure replacement is the point. Telnet gives way to SSH, HTTP to HTTPS, LDAP to LDAPS, FTP to SFTP or FTPS, and SNMPv2 to SNMPv3.

More cheat sheets

Acronyms glossary

97 security acronyms across all 11 certs, each with a one line plain English meaning.

Open the glossary →

The OSI model

All seven layers, the mnemonic, the TCP/IP mapping, and the facts exams love to test.

Review the OSI model →

Which cert should you take?

Five questions, one recommendation. Match the cert to your experience and your goal.

Take the cert finder →

Ports show up in the practice questions constantly. Premium unlocks all 2,200 of them.

Go Premium: $12/year