Skip to content

Common ports and what they do

A port number tells a device which service on a host a packet is for. Certification exams and real firewall rules both lean on a short list of them, so this page gathers every port in the SecLern study tables: the protocol, the service, and whether the service is encrypted.

Each linked port has its own page with what the service does, its secure alternative, the exam objectives that include it and the ports to learn beside it. The table is the same data as the ports quiz, so you can read a page and then test yourself.

Ports with protocol, service and a link to the page for each published port
PortProtocolService
20TCPdata / File Transfer Protocol (FTP) data: Active-mode FTP data channel: the server opens the file-transfer connection from port 20 to the client.
21TCPFTP: FTP control channel for logins and commands; credentials travel in cleartext.
22TCPSSH / SFTP: Encrypted remote login and secure file copy, and the basis for SCP and SFTP.
23TCPTelnet: Unencrypted remote terminal access that should be replaced by SSH.
25TCPSMTP: Server-to-server mail delivery and client submission in many legacy setups.
49TCPTACACS+: Cisco AAA traffic that encrypts the full message body.
53TCP/UDPDNS: Name resolution queries and replies, with TCP 53 for large responses and zone transfers.
67UDPDHCP: DHCP server port: listens for client broadcasts and sends back offers and acknowledgements with address, mask, gateway and DNS.
68UDPDHCP: DHCP client port: the client listens here for the server's offer and acknowledgement and uses it to renew its lease; the server side is port 67.
69UDPTFTP: Simple file transfer used for device images and configuration backups.
80TCPHTTP: Cleartext web traffic and the transport for many REST API calls when TLS is absent.
88TCP/UDPKerberos: Network authentication tickets.
110TCPPOP3: Mail retrieval that usually downloads and removes messages from the server.
123UDPNTP: Keeps clocks in sync so logs and certificates stay trustworthy.
135TCPRPC: Microsoft RPC endpoint mapper.
137UDPNetBIOS Name Service: Legacy NetBIOS name service: Windows hosts resolve and register names on a local network.
138UDPNetBIOS Datagram Service: Legacy NetBIOS datagram service: connectionless messages and browsing announcements.
139TCPNetBIOS Session Service: Legacy NetBIOS session service: older Windows file and printer sharing, replaced by SMB directly on 445.
143TCPIMAP: Mail retrieval that keeps messages on the server and syncs folder state.
161UDPSNMP: Manager polls agents for device health and counters; agents answer on the same port.
162UDPSNMP: Managers receive traps here: unsolicited event alerts that agents send without being polled.
179TCPBGP: Border Gateway Protocol: peers form a TCP session on port 179 to exchange routes between autonomous systems.
389TCP/UDPLDAP: Directory queries for users and groups, often used as the identity store behind AAA.
443TCPHTTPS: TLS-protected web traffic and the normal transport for controller and REST APIs.
445TCPCIFS / SMB: Server Message Block file/print sharing; common lateral-movement target.
465TCPSMTPS: SMTP over implicit TLS.
500UDPIKE: Internet Key Exchange: negotiates the security association that starts an IPsec VPN tunnel.
514UDPSyslog: Log messages sent from network devices to a collector.
520UDPRIP: RIP routing updates between neighbours; RIPv2 sends them to multicast 224.0.0.9.
587TCPSTARTTLS / submission: Authenticated mail submission from clients, upgraded with STARTTLS. CompTIA's N10-009 objectives label it SMTPS; IANA registers 587 as submission and 465 as implicit-TLS SMTPS.
636TCPLDAPS: LDAP wrapped in TLS so directory queries and credentials are encrypted.
830TCPNETCONF over SSH: Network configuration protocol (RFC 6242) that carries XML-encoded configuration operations inside an SSH session.
993TCPIMAPS: IMAP over TLS.
995TCPPOP3S: POP3 over TLS.
1194TCP/UDPOpenVPN: Default OpenVPN tunnel port.
1433TCPStructured Query Language (SQL) Server / MSSQL: Default listener for Microsoft database engine connections.
1521TCPOracle DB: Oracle database listener.
1812UDPRADIUS authentication: Authentication and authorisation requests to a RADIUS server.
1813UDPRADIUS accounting / acct: Accounting records sent from the network access device to the RADIUS server.
3306TCPMySQL: MySQL/MariaDB database.
3389TCP/UDPRDP: Remote Desktop Protocol; gatekeep from the internet.
4500UDPIPsec NAT-T: IPsec NAT traversal: ESP packets are wrapped in UDP so a VPN can cross a NAT device.
5060TCP/UDPSIP: SIP signaling in cleartext, over UDP or TCP; sets up and tears down voice and video calls.
5061TCPSIPS: SIP signaling protected by TLS, over TCP; sets up and tears down voice and video calls.
5246UDPCAPWAP control: Control channel between a wireless LAN controller and a lightweight access point: join, configuration and management.
5247UDPCAPWAP data: Data channel between a lightweight access point and its controller; client traffic is tunneled to the controller here.
5432TCPPostgreSQL: PostgreSQL database.
6653TCPOpenFlow: Control channel between an SDN controller and a switch's flow table; IANA registered 6653 (6633 was the earlier de facto port).
8080TCPHTTP Alternate: Alternate HTTP / proxy port.
8443TCPHTTPS Alternate: Alternate HTTPS port.

Questions

Start with the pairs and the secure replacements: 20 and 21 for FTP, 22 for SSH, 23 for Telnet, 25 and 587 for mail, 53 for DNS, 67 and 68 for DHCP, 80 and 443 for the web, and 3389 for remote desktop. Each page here shows the secure alternative next to the cleartext service.

Start studying free

Free plan, no card.