Port Number Lookup
Look up what runs on a TCP or UDP port, or find the port for a service - with a note on whether it is safe to expose.
Result
Ports
| Port | Proto | Service | Notes |
|---|---|---|---|
| 20 | tcp | FTP data | Active-mode data channel. Legacy - prefer SFTP. |
| 21 | tcp | FTP control | Cleartext credentials. Should not cross untrusted networks. |
| 22 | tcp | SSH / SFTP / SCP | Constant brute-force target when exposed. Key auth only. |
| 23 | tcp | Telnet | Cleartext. Disable on every device you own. |
| 25 | tcp | SMTP | Server-to-server mail relay. Often blocked outbound by ISPs. |
| 53 | tcp/udp | DNS | UDP for queries, TCP for large answers and zone transfers. |
| 67 | udp | DHCP server | Server listens on 67, client on 68. |
| 69 | udp | TFTP | No authentication. Used for firmware and config loads. |
| 80 | tcp | HTTP | Should redirect to 443 in production. |
| 88 | tcp/udp | Kerberos | Active Directory authentication. |
| 110 | tcp | POP3 | Use 995 (POP3S) instead. |
| 123 | udp | NTP | Amplification vector if a server is left open recursively. |
| 135 | tcp | MS RPC endpoint mapper | Never expose to the internet. |
| 137 | udp | NetBIOS name service | Legacy Windows name resolution. |
| 139 | tcp | NetBIOS session | Legacy SMB transport. |
| 143 | tcp | IMAP | Use 993 (IMAPS) instead. |
| 161 | udp | SNMP | v1/v2c community strings are cleartext. Use v3. |
| 162 | udp | SNMP trap | Unsolicited notifications to the NMS. |
| 179 | tcp | BGP | Peers should be explicitly permitted and authenticated. |
| 389 | tcp/udp | LDAP | Use 636 (LDAPS) or StartTLS. |
| 443 | tcp/udp | HTTPS / QUIC | TCP for HTTP/1.1 and HTTP/2, UDP for HTTP/3. |
| 445 | tcp | SMB over TCP | Ransomware favourite. Block at the perimeter. |
| 465 | tcp | SMTPS (implicit TLS) | Submission with TLS from the start. |
| 500 | udp | IKE (IPsec) | Phase 1 negotiation for IPsec VPNs. |
| 514 | udp | Syslog | Cleartext and unreliable; 6514 for TLS. |
| 515 | tcp | LPD printing | Legacy line printer daemon. |
| 520 | udp | RIP | Legacy routing protocol. |
| 546 | udp | DHCPv6 client | Client side of DHCPv6. |
| 547 | udp | DHCPv6 server | Server side of DHCPv6. |
| 587 | tcp | SMTP submission | The correct port for mail clients sending mail. |
| 636 | tcp | LDAPS | LDAP over TLS. |
| 646 | tcp/udp | LDP | MPLS label distribution. |
| 993 | tcp | IMAPS | IMAP over TLS. |
| 995 | tcp | POP3S | POP3 over TLS. |
| 1194 | udp | OpenVPN | Default OpenVPN port. |
| 1433 | tcp | Microsoft SQL Server | Never expose publicly. |
| 1521 | tcp | Oracle DB | Never expose publicly. |
| 1645 | udp | RADIUS auth (legacy Cisco) | Pre-standard port still seen in old configs. |
| 1646 | udp | RADIUS acct (legacy Cisco) | Pre-standard accounting port. |
| 1701 | udp | L2TP | Usually paired with IPsec. |
| 1723 | tcp | PPTP | Cryptographically broken. Do not deploy. |
| 1812 | udp | RADIUS authentication | The standard auth port. |
| 1813 | udp | RADIUS accounting | The standard accounting port. |
| 2049 | tcp/udp | NFS | Network file system. |
| 3128 | tcp | Squid proxy | Common HTTP proxy default. |
| 3306 | tcp | MySQL / MariaDB | Never expose publicly. |
| 3389 | tcp | RDP | Primary ransomware entry point. VPN only. |
| 3799 | udp | RADIUS CoA / Disconnect | Dynamic authorisation (RFC 5176). |
| 4500 | udp | IPsec NAT-T | IPsec traversal through NAT. |
| 5060 | tcp/udp | SIP | VoIP signalling. Constant scanning target. |
| 5061 | tcp | SIP over TLS | Encrypted SIP signalling. |
| 5432 | tcp | PostgreSQL | Never expose publicly. |
| 5900 | tcp | VNC | Weak native authentication. Tunnel it. |
| 6514 | tcp | Syslog over TLS | RFC 5425 secure syslog. |
| 6379 | tcp | Redis | No auth by default historically - never expose. |
| 8080 | tcp | HTTP alternate | Proxies and app servers. |
| 8291 | tcp | MikroTik Winbox | Management. Restrict by source address. |
| 8728 | tcp | MikroTik API | Plaintext API; 8729 for API-SSL. |
| 8729 | tcp | MikroTik API-SSL | TLS-protected RouterOS API. |
| 9100 | tcp | JetDirect / raw printing | Also used by Prometheus node exporter. |
| 10050 | tcp | Zabbix agent | Monitoring agent listener. |
| 51820 | udp | WireGuard | Default WireGuard listen port. |
Port ranges
- 0 - 1023
- System / well-known ports - require privilege to bind on Unix
- 1024 - 49151
- Registered ports - assigned to applications by IANA
- 49152 - 65535
- Dynamic / ephemeral - source ports for outbound connections
About Port Number Lookup
A working reference for the ports that actually turn up in firewall rules, packet captures and incident reviews - with a note on which ones have no business facing the internet.
Ephemeral port exhaustion
Each outbound TCP connection consumes a source port, and the dynamic range gives roughly 28,000 to 16,000 per destination tuple depending on platform. A busy proxy or NAT device making many short-lived connections to the same backend can exhaust the range, at which point new connections fail while the machine looks idle. Connections held in TIME_WAIT for 60 seconds are the usual cause, and connection pooling — not tuning the timeout down — is the correct fix.
Ephemeral ports and why they matter
Outbound connections use a source port from the dynamic range, typically 32768-60999 on Linux and 49152-65535 on Windows. A stateful firewall tracks the flow and permits the return traffic automatically, which is why you write rules for destination ports and not source ports. NAT devices are limited by this range too: roughly 64,000 concurrent translations per public address per protocol, which is the constraint behind CGNAT port block sizing.
Common use cases
- Identifying an unexpected listener found during an audit.
- Writing a firewall rule for a service you have not deployed before.
- Checking whether a port seen in logs is something to worry about.
Edge cases and gotchas
- A port number is a convention, not an identity - anything can listen on any port, and malware routinely uses 443 to blend in.
- Never forward RDP (3389), SMB (445) or Telnet (23) to the internet.