CompTIA A+ Network Port Numbers: TCP/UDP Protocols Explained

Introduction: Why Port Numbers Matter for CompTIA A+ and Network Troubleshooting

TCP and UDP port numbers are fundamental for network communication, troubleshooting, and firewall configuration. Firewalls use these ports to allow or block traffic. For the CompTIA A+ exam, you must memorize port numbers, associated protocols, and understand their real-world usage. Understanding how these protocols use ports within the IP, TCP, and UDP Explained: Networking Fundamentals for A+ Certification framework is essential for troubleshooting network connectivity.

Core Protocol Ports for File Transfer and Remote Access

FTP (File Transfer Protocol) - Ports 20 & 21

  • Port 21 (TCP): Control/administration port for FTP commands
  • Port 20 (TCP): Active data transfer port
  • Usage: Transfers files between different operating systems, supports authentication (username/password) or anonymous login

SSH (Secure Shell) - Port 22 (TCP)

  • Primary Function: Encrypted remote command-line administration
  • Security: Provides encrypted communication link, replaced insecure Telnet

Telnet - Port 23 (TCP)

  • Primary Function: Remote command-line access (unencrypted)
  • Security Risk: Sends all data in clear text; organizations should disable and use SSH instead

Email and Communication Protocol Ports

SMTP (Simple Mail Transfer Protocol) - Port 25 (TCP)

  • Primary Function: Sends email between mail servers and from client devices to servers

POP3 (Post Office Protocol v3) - Port 110 (TCP)

  • Primary Function: Receives and downloads email to local client

IMAP4 (Internet Message Access Protocol v4) - Port 143 (TCP)

  • Primary Function: Receives email with advanced features (folder management, multi-device synchronization)

Network Infrastructure Service Ports

DNS (Domain Name System) - Port 53 (UDP)

  • Primary Function: Translates fully qualified domain names (e.g., www.professormesser.com) to IP addresses
  • Redundancy: Multiple DNS servers ensure reliable name resolution

DHCP (Dynamic Host Configuration Protocol) - Ports 67 & 68 (UDP)

  • Port 67: DHCP server
  • Port 68: DHCP client
  • Function: Automatically assigns IP addresses, subnet masks, default gateways, and DNS servers
  • Features: IP address leasing and reservation for specific devices

Web and Windows Communication Ports

HTTP (Hypertext Transfer Protocol) - Port 80 (TCP)

  • Standard web traffic: Sends unencrypted data

HTTPS (HTTP Secure) - Port 443 (TCP)

  • Encrypted web traffic: Provides secure communication for web browsing (now dominant)

SMB/CIFS (Server Message Block / Common Internet File System) - Port 445 (TCP)

  • Primary Function: File sharing, printer queue communication, and data transfer between Windows devices
  • Note: Modern Windows uses direct SMB over port 445; older NetBIOS used ports 137 (UDP) and 139 (TCP)

Directory Services and Remote Desktop Ports

LDAP/LDAPS (Lightweight Directory Access Protocol) - Port 389 (TCP)

  • Primary Function: Accesses directory services databases (e.g., Microsoft Active Directory)
  • Structure: Organizes resources by organization, organizational unit, and common name
  • Usage: Authentication and resource location in network directories

RDP (Remote Desktop Protocol) - Port 3389 (TCP)

  • Primary Function: Remote desktop control and application sharing
  • Platform Support: Primarily Windows, but clients exist for macOS, Linux, Unix, iOS
  • Features: Full desktop control or single application access

For a comprehensive understanding of how these ports fit into network communication, refer to Understanding Networking Protocols: IP, TCP, and UDP Explained.

Study Tips for CompTIA A+ Port Numbers

  • Memorize not just the port number but the protocol (TCP vs. UDP)
  • Understand why each protocol is important and how it's used on real networks
  • Focus on practical applications: firewall rules, troubleshooting, and secure vs. insecure alternatives
  • For deeper foundational knowledge of how ports and protocols interact in network devices, review the Complete CCNA 200-301 Course: Network Devices & Fundamentals Explained.
  • Regular use will make these port numbers second nature over time

Protocol Summary Table:

| Protocol | Port(s) | Type | Purpose | |----------|---------|------|---------| | FTP | 20, 21 | TCP | File Transfer | | SSH | 22 | TCP | Secure Remote Admin | | Telnet | 23 | TCP | Unencrypted Remote Admin | | SMTP | 25 | TCP | Email Sending | | DNS | 53 | UDP | Name Resolution | | DHCP | 67, 68 | UDP | IP Configuration | | HTTP | 80 | TCP | Web (Unencrypted) | | POP3 | 110 | TCP | Email Receiving (Download) | | IMAP4 | 143 | TCP | Email Receiving (Sync) | | LDAP | 389 | TCP | Directory Services | | HTTPS | 443 | TCP | Web (Encrypted) | | SMB | 445 | TCP | Windows File Sharing | | RDP | 3389 | TCP | Remote Desktop |

Keep this summary

Save it to LunaNotes and it becomes a real note in your library — editable, searchable, and ready to turn into flashcards or a diagram. Free to start.

Save to LunaNotes

Or summarise for another video.

This summary and transcript were automatically generated using AI with the Free YouTube Transcript Summary Tool by LunaNotes.

Found this summary useful?

Take it with you. One click puts it in your own LunaNotes library.

Save to LunaNotes

Start taking better notes today with LunaNotes