Port Reference

Search 5,985 TCP and UDP ports by number, service or category. Get the protocol, what runs there, RFC references and whether it is safe to expose.

By

Advertisement

Look Up Any TCP or UDP Port Number

This port reference searches a database of 5,985 registered TCP and UDP ports and tells you what each one is for, which protocol it uses, what category of service it belongs to, and what the security implications of exposing it are. Type a port number to identify it, or type a service name to find the port it runs on — the search works in both directions.

It is the lookup you reach for when a firewall log shows traffic on a port you do not recognise, when an application’s documentation says “open the required ports” without saying which, or when you are reviewing a rule set and need to know whether port 5900 belongs on the public internet. Every entry includes a plain-language security note, and where the port is defined by a standards document the relevant RFC is cited.

What You Can Search

  • By port number — type 3389 and get Remote Desktop Protocol, TCP, plus the reason it should never face the internet directly.
  • By service or keyword — type postgres, kerberos, or ldap to find the ports a service uses, including its secondary and alternate ports.
  • By protocol — filter to TCP only, UDP only, or entries registered for both.
  • By category — Database, Web, File Transfer, Mail, Monitoring, Streaming, Proxy, Time, Windows, Messaging, VoIP, and more.

Search an unassigned number and you still get an answer: the tool confirms the port is within the valid 0–65535 range and tells you it is unregistered, which is itself useful information when you are triaging unexpected traffic. Results are paginated, and the page size is adjustable for when you want to scan a whole category at once.

The Three Port Ranges

RangeNameWho assigns itTypical use
0–1023Well-known / system portsIANAStandard services: HTTP, SSH, DNS, SMTP
1024–49151Registered / user portsIANA on requestVendor applications: databases, management agents
49152–65535Dynamic / ephemeral portsNobody — allocated by the OSThe client side of outbound connections

On Unix-like systems, binding to a port below 1024 traditionally requires root or an explicit capability such as CAP_NET_BIND_SERVICE. That is why web servers historically started as root and dropped privileges, and why containerised applications usually listen on 8080 internally and are published on 443 by the platform. The ephemeral range is also why a firewall rule that only permits inbound 443 still works for outbound traffic — the reply arrives on a high-numbered port belonging to an established connection, which stateful firewalls track separately.

Ports You Will Look Up Most Often

PortProtocolServiceExposure guidance
22TCPSSHKey-only auth, restrict by source address
25 / 587 / 465TCPSMTP / submission / SMTPS25 for server-to-server, 587 for clients
53TCP + UDPDNSNever run an open recursive resolver
80 / 443TCPHTTP / HTTPSRedirect 80 to 443; the only pair most hosts need public
123UDPNTPRestrict monlist-style queries; classic amplification vector
445TCPSMBInternal only, always — the EternalBlue and ransomware path
1433 / 3306 / 5432TCPSQL Server / MySQL / PostgreSQLBind to localhost or a private subnet, never 0.0.0.0
3389TCPRDPBehind a VPN or gateway; the most brute-forced port on the internet
5900TCPVNCUnencrypted by default; tunnel over SSH
6379TCPRedisHistorically unauthenticated; bind to localhost

How to Use a Port Lookup in Practice

  1. Triaging unexpected traffic. Take the destination port from the firewall log and search it here. Knowing that 1900/UDP is SSDP, not an attack, saves an incident.
  2. Reviewing firewall rules. Filter by category — Database, for instance — and check whether any of those ports appear in a rule with a public source. Database ports on the internet are the single most common finding in an external assessment.
  3. Documenting an application. Search by service name to build the full list of ports an application needs, including the secondary ones that only appear under load or during clustering.
  4. Interpreting a port scan. Map each open port to a service, then ask whether that service is meant to be reachable from where the scan ran.

A caveat that matters: a registration tells you what a port is supposed to carry, not what it is carrying. Malware routinely uses 443 to blend into normal traffic, and administrators routinely move SSH to 2222. Confirm with the running process — ss -tulpn on Linux, netstat -ano on Windows — before drawing conclusions.

TCP or UDP?

TCP is connection-oriented: a three-way handshake, ordered delivery, retransmission of anything lost. UDP sends datagrams with none of that, which makes it faster and lighter but places reliability on the application. Services that need every byte in order — HTTP, SSH, SMTP, database protocols — use TCP. Services that value latency over completeness, or that fit in a single datagram, use UDP: DNS queries, NTP, SNMP, syslog, most real-time media.

Many services are registered for both, which is why the protocol column in this database has three values. DNS is the classic example: queries go over UDP/53, but zone transfers and responses too large for a datagram fall back to TCP/53. Block TCP/53 in the belief that DNS is “a UDP protocol” and DNSSEC-signed responses start failing intermittently. QUIC has since moved a great deal of web traffic onto UDP/443 as well, so a firewall that only permits TCP/443 will silently push clients back to TCP HTTP/2.

Frequently Asked Questions

How many ports are there in total?+

65,536 per protocol, numbered 0 through 65535, because the port field in the TCP and UDP headers is 16 bits. This reference covers the 5,985 that have a registered or well-documented service associated with them.

What does it mean if a port is not in the database?+

It is unregistered — typically an ephemeral port allocated by an operating system for an outbound connection, or a port an application picked for itself. The tool confirms the number is valid and tells you no assignment exists, which is the correct answer rather than an error.

Which ports are safe to expose to the internet?+

As a default, 80 and 443 and nothing else. Everything else should sit behind a VPN, a bastion host, or a source-address restriction. Management protocols — SSH, RDP, VNC, SMB, WinRM — and every database port belong on a private network. Each entry here carries a security note reflecting that.

Can I run a service on a non-standard port?+

Yes, and it is common. Moving SSH off 22 reduces automated scanning noise, though it is obscurity rather than security — a targeted scan finds it in seconds. The real controls are authentication, source restriction, and rate limiting.

Why do some entries list both TCP and UDP?+

Because IANA registers a service name against a port number for both protocols even when only one is used in practice, and because some protocols genuinely use both — DNS on 53 being the standard example.

What is the difference between a closed port and a filtered port?+

A closed port answers — TCP sends a RST — telling the scanner the host is up but nothing is listening. A filtered port produces no answer at all, because a firewall dropped the packet. Scanners report these differently, and the distinction tells you whether a firewall is in the path.

How do I see which ports are open on my own machine?+

On Linux, ss -tulpn lists listening sockets with the owning process. On Windows, netstat -ano plus Task Manager maps a PID to a program. On macOS, lsof -iTCP -sTCP:LISTEN -n -P. Cross-reference the results here to confirm each listener is one you intended.

What else should I check alongside ports?+

DNS records for the host — our DNS lookup tool resolves them — and the network boundaries themselves. The subnet calculator helps you define the source ranges a rule should permit, and the firewall rule simulator tests whether a rule set actually blocks what you think it does.

What are network ports and why do they matter?+

Network ports are logical endpoints in TCP/IP networking, numbered 0-65535, that enable multiple services to operate on a single IP address. Ports direct traffic to specific applications: web servers use 80/443, email uses 25/587/993, SSH uses 22. Understanding ports is essential for firewall configuration, troubleshooting connectivity, and securing network services properly.

What is the difference between TCP and UDP ports?+

TCP (Transmission Control Protocol) provides reliable, connection-oriented communication with error checking and guaranteed delivery. UDP (User Datagram Protocol) offers connectionless, faster communication without delivery guarantees. TCP suits applications needing reliability (HTTP, SSH, email); UDP suits speed-critical services (DNS, streaming, gaming). Many services support both protocols on the same port.

Related tools

This tool is provided for informational and educational purposes only. While we strive for accuracy, we make no warranties about the completeness or reliability of results.