Skip to main content

Common Ports

Must-Know Ports Table

Port(s)Protocol / ServiceTransportPurpose / NotesSecure Alternative
20/21FTP (File Transfer Protocol)TCPFile transfers (20 = data, 21 = control) – plaintext, insecureSFTP or FTPS
22SSH (Secure Shell) / SFTPTCPSecure remote access, encrypted command-line, secure file transfer (SCP/SFTP)— (already secure)
23TelnetTCPInsecure remote terminal access – clear text passwordsSSH (22)
25SMTP (Simple Mail Transfer Protocol)TCPEmail sending between servers – traditionally insecureSMTPS / Submission (587)
53DNS (Domain Name System)UDP (main), TCPDomain name to IP resolution; TCP for zone transfers/large responsesDNSSEC (same port)
67/68DHCP (Dynamic Host Configuration Protocol)UDPAutomatic IP address assignment (67 = server, 68 = client)
69TFTP (Trivial File Transfer Protocol)UDPSimple file transfer – no authentication, often used for network bootingSFTP / SSH (22)
80HTTP (Hypertext Transfer Protocol)TCPUnencrypted web trafficHTTPS (443)
110POP3 (Post Office Protocol v3)TCPRetrieve email from server – insecure by defaultPOP3S (995)
123NTP (Network Time Protocol)UDPSynchronize clocks across network devices
143IMAP (Internet Message Access Protocol)TCPRetrieve and manage email on server – insecure by defaultIMAPS (993)
161/162SNMP (Simple Network Management Protocol)UDPMonitor and manage network devices (161 = get/set, 162 = traps)SNMPv3 (same ports)
389LDAP (Lightweight Directory Access Protocol)TCP/UDPDirectory services, authentication, user/group queriesLDAPS (636)
443HTTPS (HTTP Secure)TCPEncrypted web traffic (TLS/SSL)— (already secure)
445SMB (Server Message Block)TCPWindows file and printer sharingSMB 3.0+ with encryption
514SyslogUDP (traditional)Standard logging protocolSyslog over TLS (6514)
587SMTP Submission / SMTPSTCPSecure email submission (STARTTLS required)— (already secure)
636LDAPS (LDAP Secure)TCPEncrypted directory services— (already secure)
993IMAPS (IMAP Secure)TCPSecure email retrieval— (already secure)
995POP3S (POP3 Secure)TCPSecure email retrieval— (already secure)
1433Microsoft SQL ServerTCPDefault port for MS SQL database connections
3389RDP (Remote Desktop Protocol)TCPWindows graphical remote desktopRDP with TLS/NLA
5060/5061SIP (Session Initiation Protocol)UDP/TCPVoIP signaling (5060 = clear, 5061 = TLS)SIP TLS (5061)

Quick Memorization Groups

File Transfer

  • 20/21 → FTP (insecure)
  • 22 → SSH / SFTP (secure replacement)
  • 69 → TFTP (trivial / UDP / no login)

Remote Access

  • 23 → Telnet (never use in production)
  • 22 → SSH (the secure standard)
  • 3389 → RDP (Windows GUI remote)

Web & Encrypted Web

  • 80 → HTTP (plain)
  • 443 → HTTPS (encrypted – most important secure port)

Email

  • 25 → SMTP (send – often clear)
  • 587 → Secure SMTP submission
  • 110 → POP3 (retrieve – insecure)
  • 143 → IMAP (retrieve/manage – insecure)
  • 993 → IMAPS
  • 995 → POP3S

Infrastructure & Management

  • 53 → DNS
  • 67/68 → DHCP
  • 123 → NTP
  • 161/162 → SNMP
  • 389/636 → LDAP / LDAPS
  • 514 → Syslog
  • 445 → SMB

VoIP & Database

  • 5060/5061 → SIP (VoIP signaling)
  • 1433 → SQL Server

Exam Hot Spots & Tricks

  • Secure vs. Insecure pairs (very common):

    • 80 → 443 (HTTP → HTTPS)
    • 23 → 22 (Telnet → SSH)
    • 21 → 22 (FTP → SFTP)
    • 389 → 636 (LDAP → LDAPS)
    • 25 → 587 (SMTP → secure submission)
  • UDP ports (fast, connectionless – good to remember):

    • 53 (DNS queries), 67/68 (DHCP), 69 (TFTP), 123 (NTP), 161/162 (SNMP), 5060 (SIP)
  • Common PBQ scenarios:

    • "Which port to block to prevent Telnet?" → 23
    • "Allow secure web traffic only" → allow 443, block 80
    • "Configure firewall to permit DHCP" → allow UDP 67 & 68
    • "Secure LDAP is required" → use 636 instead of 389

Study Strategy

  1. Make flashcards: Front = port number → Back = protocol + purpose + secure alt
  2. Quiz daily using Anki or Quizlet
  3. Group study: recite one category at a time
  4. Practice questions: look for "what service uses port X?" or "block port Y to stop Z"