BoardITGuy

Common Network Ports Cheat Sheet for Network+, Security+ and CCNA

By Samuel Cuadrado, founder of BoardITGuy (BoardXGuy LLC). Updated 2026-10-27.

Ports and protocols show up on Network+, Security+, A+, CCNA and most other IT exams, and they are the thing students most often say they cannot keep in their heads. This sheet is grouped by what the service does, with the secure version next to the plain one, because the pairs are what exams ask.

Use it as a reference, then recall it with flashcards instead of rereading it. Learning the groups first is much easier than learning the numbers one at a time.

Remote access and file transfer

ServicePortTransportNotes
SSH (and SFTP, SCP)22TCPEncrypted remote shell. SFTP and SCP run inside SSH.
Telnet23TCPPlain text. Replaced by SSH.
FTP20 and 21TCP21 is control, 20 is data in active mode. Plain text.
FTPS990 (implicit), or 21 with STARTTLSTCPFTP wrapped in TLS. Not the same as SFTP.
TFTP69UDPSimple, no authentication. Used to boot devices and move configs.
RDP3389TCP (and UDP)Windows remote desktop.
VNC5900 and upTCPRemote screen sharing.

Web

ServicePortTransportNotes
HTTP80TCPPlain text.
HTTPS443TCPHTTP over TLS.
HTTP alternate8080TCPCommon for proxies and test servers.

Email

ServicePortTransportNotes
SMTP25TCPServer to server mail transfer.
SMTP submission587TCPClients sending mail, normally with STARTTLS.
SMTP over TLS (implicit)465TCPOlder implicit-TLS port, still used.
POP3110TCPDownloads mail. POP3S (secure) is 995.
IMAP143TCPKeeps mail on the server. IMAPS (secure) is 993.

Names, addresses and time

ServicePortTransportNotes
DNS53UDP and TCPUDP for normal queries, TCP for large answers and zone transfers.
DNS over TLS853TCPEncrypted DNS.
DHCP67 (server), 68 (client)UDPHands out addresses.
NTP123UDPTime synchronisation.

Directory, authentication and logging

ServicePortTransportNotes
Kerberos88TCP and UDPTicket-based authentication.
LDAP389TCP and UDPDirectory queries. LDAPS (secure) is 636.
RADIUS1812 (auth), 1813 (accounting)UDPOlder deployments use 1645 and 1646.
TACACS+49TCPCisco device administration.
Syslog514UDPLog forwarding. Syslog over TLS is 6514.
SNMP161 (queries), 162 (traps)UDPDevice monitoring. SNMPv3 adds authentication and encryption.

File sharing and databases

ServicePortTransportNotes
SMB445TCPWindows file sharing. Older NetBIOS uses 137, 138 and 139.
SQL Server1433TCPMicrosoft SQL Server.
MySQL3306TCPMySQL and MariaDB.
PostgreSQL5432TCPPostgreSQL.

VPN, voice and routing

ServicePort or numberTransportNotes
IKE (IPsec key exchange)500UDPSets up IPsec. NAT traversal uses 4500.
SIP5060 (5061 with TLS)UDP and TCPVoice and video call signalling.
BGP179TCPRouting between networks.

IP protocol numbers (not ports)

Some protocols ride directly on IP and have a protocol number instead of a port:

ProtocolNumber
ICMP1
TCP6
UDP17
GRE47
ESP (IPsec)50
AH (IPsec)51
EIGRP88
OSPF89

How to remember them

  1. Learn pairs. For each plain service, learn its secure twin: HTTP and HTTPS, LDAP and LDAPS, IMAP and IMAPS, POP3 and POP3S, Telnet and SSH.
  2. Group by purpose. Email, names, remote access and directory services each form a small set.
  3. Know the transport. DNS, DHCP, TFTP, NTP, SNMP and syslog are UDP by default. Most of the rest is TCP.
  4. Recall, don't reread. Run the ports as flashcards a few minutes a day; each one comes back just before you'd forget it.
  5. Test it the way exams ask. Practice questions describe a symptom (users can't resolve names, mail won't send) and make you pick the port, so answer some once the numbers feel solid.

Exams sometimes use a slightly different port for a service than the one real networks do, so when a practice question and a vendor document disagree, trust the vendor's current exam objectives.

The CompTIA Network+ study board and the CompTIA Security+ study board put these on a visual map next to the topics they belong to, and the flashcards drill them.

See the study boards More guides