Common Ports & Protocols

Key Takeaways

  • Port numbers range from 0 to 65,535 and are divided into well-known (0-1023), registered (1024-49151), and dynamic/ephemeral (49152-65535) ranges.
  • You must memorize key port numbers for the exam: HTTP (80), HTTPS (443), FTP (20/21), SSH (22), Telnet (23), SMTP (25), DNS (53), DHCP (67/68), POP3 (110), IMAP (143), RDP (3389), and SMB (445).
  • Secure versions of protocols typically use different ports: HTTPS uses 443 instead of 80, SFTP uses 22, IMAPS uses 993, POP3S uses 995, and SMTPS uses 465 or 587.
  • DNS translates domain names to IP addresses and is essential for all internet browsing — DNS failure makes it appear as if the internet is down even when connectivity exists.
  • DHCP automatically assigns IP addresses, subnet masks, default gateways, and DNS server addresses to network devices, eliminating the need for manual configuration.
Last updated: March 2026

Common Ports & Protocols

Port Number Ranges

RangeCategoryDescription
0–1,023Well-Known PortsReserved for standard services (HTTP, FTP, DNS, etc.)
1,024–49,151Registered PortsAssigned to specific applications (RDP, SQL, etc.)
49,152–65,535Dynamic/EphemeralTemporarily assigned for client-side connections

Essential Ports to Memorize

Web & File Transfer

PortProtocolDescriptionTCP/UDP
20FTP DataFile Transfer Protocol — data channelTCP
21FTP ControlFile Transfer Protocol — command channelTCP
22SSH/SFTP/SCPSecure Shell, Secure FTP, Secure CopyTCP
23TelnetUnsecured remote terminal accessTCP
80HTTPHypertext Transfer Protocol (unencrypted web)TCP
443HTTPSHTTP Secure (encrypted with TLS)TCP

Email

PortProtocolDescriptionTCP/UDP
25SMTPSimple Mail Transfer Protocol (sending email)TCP
110POP3Post Office Protocol v3 (receiving email)TCP
143IMAPInternet Message Access Protocol (receiving email)TCP
465SMTPSSMTP over SSL (legacy secure sending)TCP
587SMTP (STARTTLS)SMTP with STARTTLS encryption (modern secure sending)TCP
993IMAPSIMAP over SSL/TLS (secure receiving)TCP
995POP3SPOP3 over SSL/TLS (secure receiving)TCP

Network Services

PortProtocolDescriptionTCP/UDP
53DNSDomain Name System (name resolution)TCP & UDP
67DHCP ServerDynamic Host Configuration Protocol (server)UDP
68DHCP ClientDynamic Host Configuration Protocol (client)UDP
69TFTPTrivial File Transfer Protocol (simple, no auth)UDP
161SNMPSimple Network Management Protocol (monitoring)UDP
162SNMP TrapSNMP alerts/notificationsUDP
389LDAPLightweight Directory Access ProtocolTCP
636LDAPSLDAP over SSL/TLS (secure)TCP

Remote Access & File Sharing

PortProtocolDescriptionTCP/UDP
445SMB/CIFSServer Message Block (Windows file sharing)TCP
3389RDPRemote Desktop Protocol (Windows remote access)TCP
5900VNCVirtual Network Computing (remote desktop)TCP

Key Protocol Details

DNS (Domain Name System) — Port 53

DNS translates human-readable domain names (www.example.com) into IP addresses (93.184.216.34):

Record TypePurposeExample
AMaps hostname to IPv4 addressexample.com → 93.184.216.34
AAAAMaps hostname to IPv6 addressexample.com → 2606:2800:220:1:...
MXMail exchanger for the domainexample.com → mail.example.com
CNAMEAlias for another domain namewww.example.com → example.com
TXTText records (SPF, DKIM, verification)example.com → "v=spf1 ..."
NSAuthoritative name serversexample.com → ns1.example.com
PTRReverse DNS (IP to hostname)93.184.216.34 → example.com

DHCP (Dynamic Host Configuration Protocol) — Ports 67/68

DHCP automatically assigns network configuration to devices using the DORA process:

  1. Discover — Client broadcasts "I need an IP address" (UDP 67)
  2. Offer — DHCP server responds with an available IP address offer
  3. Request — Client requests the offered IP address
  4. Acknowledge — Server confirms and assigns the IP address

DHCP assigns:

  • IP address
  • Subnet mask
  • Default gateway
  • DNS server addresses
  • Lease duration (how long the assignment is valid)

FTP (File Transfer Protocol) — Ports 20/21

FTP uses two separate connections:

  • Port 21 — Control channel (commands, authentication)
  • Port 20 — Data channel (actual file transfers)

FTP Modes:

  • Active Mode: Server initiates data connection back to client (may be blocked by client firewalls)
  • Passive Mode: Client initiates both connections (firewall-friendly)

Security Note: FTP transmits credentials in plaintext. Use SFTP (port 22) or FTPS (port 990) for encrypted file transfer.

Test Your Knowledge

Which port number is used by HTTPS?

A
B
C
D
Test Your Knowledge

What does the DHCP "DORA" process stand for?

A
B
C
D
Test Your KnowledgeMatching

Match each port number to its protocol:

Match each item on the left with the correct item on the right

1
Port 22
2
Port 53
3
Port 3389
4
Port 445
Test Your Knowledge

A DNS record that maps a domain name to an IPv4 address is called:

A
B
C
D