Skip to main content
CertLighthouse

Free study tool

Port and protocol reference

The well-known TCP and UDP ports that come up on CompTIA A+ and CompTIA Network+, each linked to its entry in the IANA service name and port registry. Filter the table, then quiz yourself.

Useful for CompTIA A+ Core 1 and CompTIA Network+

28 ports

Well-known ports and the protocols that use them
PortProtocolTransportIANA service name
20FTP (data)TCPftp-data (IANA registry)
21FTP (control)TCPftp (IANA registry)
22SSHTCPssh (IANA registry)
23TelnetTCPtelnet (IANA registry)
25SMTPTCPsmtp (IANA registry)
53DNSTCP and UDPdomain (IANA registry)
67DHCP (server)UDPbootps (IANA registry)
68DHCP (client)UDPbootpc (IANA registry)
69TFTPUDPtftp (IANA registry)
80HTTPTCPhttp (IANA registry)
110POP3TCPpop3 (IANA registry)
123NTPUDPntp (IANA registry)
137NetBIOS (name service)UDPnetbios-ns (IANA registry)
138NetBIOS (datagram service)UDPnetbios-dgm (IANA registry)
139NetBIOS (session service)TCPnetbios-ssn (IANA registry)
143IMAPTCPimap (IANA registry)
161SNMP (agent)UDPsnmp (IANA registry)
162SNMP (traps)UDPsnmptrap (IANA registry)
389LDAPTCPldap (IANA registry)
443HTTPSTCPhttps (IANA registry)
445SMBTCPmicrosoft-ds (IANA registry)
514SyslogUDPsyslog (IANA registry)
587SMTP (mail submission)TCPsubmission (IANA registry)
636LDAPSTCPldaps (IANA registry)
1433SQL ServerTCPms-sql-s (IANA registry)
3389RDPTCPms-wbt-server (IANA registry)
5060SIPTCP and UDPsip (IANA registry)
5061SIP (over TLS)TCPsips (IANA registry)

Quiz yourself

Which port does IMAP use?

Reading the table

The transport column shows what each protocol uses on that port in practice. IANA often registers a service on both TCP and UDP even when only one is used, so the registry entry can list more than the table does.

Some protocols need more than one port. FTP uses 21 for its control connection and 20 for data, DHCP servers listen on 67 while clients use 68, and SNMP agents answer on 161 while traps go to 162.

SFTP has no port of its own in this list: it runs inside SSH on port 22. The sftp name IANA registers on port 115 belongs to an older, unrelated protocol.

Common questions

What port does DNS use?
Port 53, over both UDP and TCP.
What ports does DHCP use?
UDP 67 for the server and UDP 68 for the client. Clients send to the server on 67, and servers reply to clients on 68.
Which ports are the secure versions of common protocols?
HTTPS uses TCP 443 instead of HTTP's 80, LDAPS uses TCP 636 instead of LDAP's 389, and SIP over TLS uses TCP 5061 instead of 5060. SSH on TCP 22 replaces Telnet on 23.
What port does Remote Desktop use?
TCP 3389, registered with IANA as ms-wbt-server.

Practice that remembers where you left off

The CertLighthouse app will have these generators built in, with your progress saved and questions aimed at what you miss most. It's in development now.