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.

Reference Protocol Reference Runs in your browser
Try:

Result

Matches
62 of 62
Flagged as risky to expose
14

Ports

PortProtoServiceNotes
20tcpFTP dataActive-mode data channel. Legacy - prefer SFTP.
21tcpFTP controlCleartext credentials. Should not cross untrusted networks.
22tcpSSH / SFTP / SCPConstant brute-force target when exposed. Key auth only.
23tcpTelnetCleartext. Disable on every device you own.
25tcpSMTPServer-to-server mail relay. Often blocked outbound by ISPs.
53tcp/udpDNSUDP for queries, TCP for large answers and zone transfers.
67udpDHCP serverServer listens on 67, client on 68.
69udpTFTPNo authentication. Used for firmware and config loads.
80tcpHTTPShould redirect to 443 in production.
88tcp/udpKerberosActive Directory authentication.
110tcpPOP3Use 995 (POP3S) instead.
123udpNTPAmplification vector if a server is left open recursively.
135tcpMS RPC endpoint mapperNever expose to the internet.
137udpNetBIOS name serviceLegacy Windows name resolution.
139tcpNetBIOS sessionLegacy SMB transport.
143tcpIMAPUse 993 (IMAPS) instead.
161udpSNMPv1/v2c community strings are cleartext. Use v3.
162udpSNMP trapUnsolicited notifications to the NMS.
179tcpBGPPeers should be explicitly permitted and authenticated.
389tcp/udpLDAPUse 636 (LDAPS) or StartTLS.
443tcp/udpHTTPS / QUICTCP for HTTP/1.1 and HTTP/2, UDP for HTTP/3.
445tcpSMB over TCPRansomware favourite. Block at the perimeter.
465tcpSMTPS (implicit TLS)Submission with TLS from the start.
500udpIKE (IPsec)Phase 1 negotiation for IPsec VPNs.
514udpSyslogCleartext and unreliable; 6514 for TLS.
515tcpLPD printingLegacy line printer daemon.
520udpRIPLegacy routing protocol.
546udpDHCPv6 clientClient side of DHCPv6.
547udpDHCPv6 serverServer side of DHCPv6.
587tcpSMTP submissionThe correct port for mail clients sending mail.
636tcpLDAPSLDAP over TLS.
646tcp/udpLDPMPLS label distribution.
993tcpIMAPSIMAP over TLS.
995tcpPOP3SPOP3 over TLS.
1194udpOpenVPNDefault OpenVPN port.
1433tcpMicrosoft SQL ServerNever expose publicly.
1521tcpOracle DBNever expose publicly.
1645udpRADIUS auth (legacy Cisco)Pre-standard port still seen in old configs.
1646udpRADIUS acct (legacy Cisco)Pre-standard accounting port.
1701udpL2TPUsually paired with IPsec.
1723tcpPPTPCryptographically broken. Do not deploy.
1812udpRADIUS authenticationThe standard auth port.
1813udpRADIUS accountingThe standard accounting port.
2049tcp/udpNFSNetwork file system.
3128tcpSquid proxyCommon HTTP proxy default.
3306tcpMySQL / MariaDBNever expose publicly.
3389tcpRDPPrimary ransomware entry point. VPN only.
3799udpRADIUS CoA / DisconnectDynamic authorisation (RFC 5176).
4500udpIPsec NAT-TIPsec traversal through NAT.
5060tcp/udpSIPVoIP signalling. Constant scanning target.
5061tcpSIP over TLSEncrypted SIP signalling.
5432tcpPostgreSQLNever expose publicly.
5900tcpVNCWeak native authentication. Tunnel it.
6514tcpSyslog over TLSRFC 5425 secure syslog.
6379tcpRedisNo auth by default historically - never expose.
8080tcpHTTP alternateProxies and app servers.
8291tcpMikroTik WinboxManagement. Restrict by source address.
8728tcpMikroTik APIPlaintext API; 8729 for API-SSL.
8729tcpMikroTik API-SSLTLS-protected RouterOS API.
9100tcpJetDirect / raw printingAlso used by Prometheus node exporter.
10050tcpZabbix agentMonitoring agent listener.
51820udpWireGuardDefault 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.

Frequently asked questions

Is it useful to move SSH to a non-standard port?
It cuts log noise from mass scanning considerably. It is not a security control - use key authentication and source restrictions for that.
Why do RADIUS ports appear twice?
1812/1813 are the standardised ports. 1645/1646 were Cisco's pre-standard choice and still appear in older configuration, so both need to be checked when a NAS will not authenticate.