Common network ports
The ports every network and security engineer should know, with what each one does and how to secure it.
These are the ports every network and security engineer should know: for the CCNA, Network+ and Security+ exams, for firewall rules and for spotting risky services in a scan. Click a port for what it does, its security risks and how to secure it.
| Port | Transport | Service | Full name | Encrypted |
|---|---|---|---|---|
| 20-21 | TCP | FTP | File Transfer Protocol | No |
| 22 | TCP | SSH | Secure Shell (also SFTP and SCP) | Yes |
| 23 | TCP | Telnet | Telnet remote terminal | No |
| 25 | TCP | SMTP | Simple Mail Transfer Protocol (server to server) | Optional (STARTTLS) |
| 53 | UDP/TCP | DNS | Domain Name System | No (DoT and DoH add encryption) |
| 67-68 | UDP | DHCP | Dynamic Host Configuration Protocol | No |
| 69 | UDP | TFTP | Trivial File Transfer Protocol | No |
| 80 | TCP | HTTP | Hypertext Transfer Protocol | No |
| 88 | TCP/UDP | Kerberos | Kerberos authentication | Yes (tickets are encrypted) |
| 110 | TCP | POP3 | Post Office Protocol version 3 | No |
| 123 | UDP | NTP | Network Time Protocol | No (NTS adds security) |
| 135 | TCP | MS-RPC | Microsoft RPC endpoint mapper | No |
| 137-139 | UDP/TCP | NetBIOS | NetBIOS name, datagram and session services | No |
| 143 | TCP | IMAP | Internet Message Access Protocol | Optional (STARTTLS) |
| 161-162 | UDP | SNMP | Simple Network Management Protocol | Only in SNMPv3 |
| 179 | TCP | BGP | Border Gateway Protocol | No (TCP-AO or MD5 protect sessions) |
| 389 | TCP/UDP | LDAP | Lightweight Directory Access Protocol | Optional (StartTLS) |
| 443 | TCP, plus UDP for HTTP/3 | HTTPS | HTTP over TLS | Yes |
| 445 | TCP | SMB | Server Message Block | Optional (SMB 3 encryption) |
| 500/4500 | UDP | IPsec IKE | Internet Key Exchange for IPsec VPNs | Yes |
| 514 | UDP | Syslog | System logging protocol | No (TLS on 6514) |
| 587 | TCP | SMTP submission | Mail submission for email clients | Yes (STARTTLS) |
| 636 | TCP | LDAPS | LDAP over TLS | Yes |
| 853 | TCP | DNS over TLS | DNS over TLS (DoT) | Yes |
| 993 | TCP | IMAPS | IMAP over TLS | Yes |
| 995 | TCP | POP3S | POP3 over TLS | Yes |
| 1433 | TCP | SQL Server | Microsoft SQL Server | Optional (TLS) |
| 1812 | UDP | RADIUS | Remote Authentication Dial-In User Service | Partial (passwords obscured) |
| 3306 | TCP | MySQL | MySQL and MariaDB database | Optional (TLS) |
| 3389 | TCP and UDP | RDP | Remote Desktop Protocol | Yes |
| 5060 | UDP/TCP | SIP | Session Initiation Protocol (VoIP) | No (SIP over TLS uses 5061) |
| 5432 | TCP | PostgreSQL | PostgreSQL database | Optional (TLS) |
| 5900 | TCP | VNC | Virtual Network Computing | Often no |
| 8080 | TCP | HTTP alternate | Alternative HTTP port | No (unless configured) |
Ports that should never face the internet
Ransomware gangs and botnets scan the whole internet for these services every day. Keep them behind a VPN or firewall: Telnet (23), SMB (445), RDP (3389), NetBIOS (137-139), SNMP (161), VNC (5900) and databases such as SQL Server (1433) and MySQL (3306).
Need a port that is not listed? Search hundreds more in the port lookup tool.