Showing 30 of 30
20, 21 · FTP
- TCP/UDP:
- TCP
- Used for:
- File transfer (20 data, 21 control)
22 · SSH / SFTP / SCP
- TCP/UDP:
- TCP
- Used for:
- Secure remote login and secure file transfer
23 · Telnet
- TCP/UDP:
- TCP
- Used for:
- Unencrypted remote login (avoid)
25 · SMTP
- TCP/UDP:
- TCP
- Used for:
- Sending email between mail servers
53 · DNS
- TCP/UDP:
- TCP/UDP
- Used for:
- Name resolution (UDP for queries, TCP for zone transfers)
67, 68 · DHCP
- TCP/UDP:
- UDP
- Used for:
- Automatic IP addressing (67 server, 68 client)
69 · TFTP
- TCP/UDP:
- UDP
- Used for:
- Simple file transfer with no authentication
80 · HTTP
- TCP/UDP:
- TCP
- Used for:
- Unencrypted web traffic
88 · Kerberos
- TCP/UDP:
- TCP/UDP
- Used for:
- Network authentication (e.g. Active Directory)
110 · POP3
- TCP/UDP:
- TCP
- Used for:
- Downloading email
123 · NTP
- TCP/UDP:
- UDP
- Used for:
- Time synchronisation
137–139 · NetBIOS
- TCP/UDP:
- TCP/UDP
- Used for:
- Legacy Windows name, datagram and session services
143 · IMAP
- TCP/UDP:
- TCP
- Used for:
- Accessing email on the server
161, 162 · SNMP
- TCP/UDP:
- UDP
- Used for:
- Network device monitoring (162 for traps)
389 · LDAP
- TCP/UDP:
- TCP/UDP
- Used for:
- Directory services
427 · SLP
- TCP/UDP:
- TCP/UDP
- Used for:
- Service discovery on local networks
443 · HTTPS
- TCP/UDP:
- TCP
- Used for:
- Encrypted web traffic (HTTP over TLS)
445 · SMB / CIFS
- TCP/UDP:
- TCP
- Used for:
- Windows file and printer sharing
465 · SMTPS
- TCP/UDP:
- TCP
- Used for:
- SMTP over TLS
514 · Syslog
- TCP/UDP:
- UDP
- Used for:
- Sending log messages to a log server
548 · AFP
- TCP/UDP:
- TCP
- Used for:
- Apple file sharing (legacy)
587 · SMTP (submission)
- TCP/UDP:
- TCP
- Used for:
- Email clients sending mail, usually with STARTTLS
636 · LDAPS
- TCP/UDP:
- TCP
- Used for:
- LDAP over TLS
993 · IMAPS
- TCP/UDP:
- TCP
- Used for:
- IMAP over TLS
995 · POP3S
- TCP/UDP:
- TCP
- Used for:
- POP3 over TLS
1433 · Microsoft SQL Server
- TCP/UDP:
- TCP
- Used for:
- Database connections
3306 · MySQL
- TCP/UDP:
- TCP
- Used for:
- Database connections
3389 · RDP
- TCP/UDP:
- TCP
- Used for:
- Windows Remote Desktop
5060, 5061 · SIP
- TCP/UDP:
- TCP/UDP
- Used for:
- VoIP call setup (5061 over TLS)
5900 · VNC
- TCP/UDP:
- TCP
- Used for:
- Remote desktop sharing
Memory tip
Many secure versions sit on their own port: HTTP 80 → HTTPS 443, LDAP 389 → LDAPS 636, IMAP 143 → IMAPS 993, POP3 110 → POP3S 995. Learn them in pairs.
Want the ports grouped by topic, with tips for remembering them? Read common port numbers for CompTIA A+, Network+ and Security+.
Common questions
What is port 443 used for?
HTTPS: encrypted web traffic, which is HTTP over TLS. It runs over TCP. Plain, unencrypted HTTP uses port 80.
What is the difference between TCP and UDP?
TCP sets up a connection and makes sure data arrives complete and in order, so it's used for web pages, email and file transfer. UDP sends data without that checking, which is faster, so it's used for things like DNS lookups, streaming and voice calls.
Which port does SSH use?
Port 22, over TCP. SFTP and SCP run over SSH, so they use port 22 too. Telnet uses port 23 but sends everything unencrypted, so SSH should be used instead.
Which port does Remote Desktop use?
Microsoft's Remote Desktop Protocol (RDP) uses TCP port 3389.
Does DNS use TCP or UDP?
Both, on port 53. Most lookups use UDP. TCP is used for zone transfers and for replies that are too large for UDP.
Which ports should I learn for the CompTIA exams?
Start with 20/21 FTP, 22 SSH, 23 Telnet, 25 SMTP, 53 DNS, 67/68 DHCP, 80 HTTP, 110 POP3, 143 IMAP, 443 HTTPS, 445 SMB and 3389 RDP, then add the secure versions such as 636 LDAPS, 993 IMAPS and 995 POP3S.