Network mathematics · Offline reference

TCP/UDP Port Reference

A service entry in a configuration sheet needs both a port number and a transport. This local reference helps you interpret familiar assignments and compare entries that share a number across TCP and UDP.

Inputs

Result

Matching entries
22
Calculated or matching entries
PortTransportServiceCommon use
20TCPFTP dataData connection in active FTP
21TCPFTP controlCommands and replies
22TCPSSHSecure remote terminal and related services
25TCPSMTPMail transfer between servers
53UDPDNSOrdinary name service queries
53TCPDNSStream-based DNS including zone transfers
67UDPDHCP serverIPv4 address configuration
68UDPDHCP clientIPv4 configuration replies
80TCPHTTPWeb traffic over TCP
110TCPPOP3Mailbox retrieval
123UDPNTPClock synchronization
143TCPIMAPMailbox access
161UDPSNMPManagement requests
389TCPLDAPDirectory access
443TCPHTTPSHTTP over TLS and TCP
443UDPHTTPS / HTTP/3HTTP over QUIC
546UDPDHCPv6 clientIPv6 configuration replies
547UDPDHCPv6 serverIPv6 configuration requests
587TCPSubmissionMail submission
853TCPDNS over TLSEncrypted DNS over a TLS stream
993TCPIMAPSMailbox access over TLS
5353UDPmDNSMulticast name resolution

Selected common uses from the IANA registry. A port assignment alone cannot identify the application using it.

In this guide11 sections

Introduction

A service entry in a configuration sheet needs both a port number and a transport. This local reference helps you interpret familiar assignments and compare entries that share a number across TCP and UDP.

Method and concepts

TCP and UDP each use a 16-bit source port and a 16-bit destination port. Their namespaces are independent. A registered service name describes an agreed use of a number with a transport. A particular application may be configured with a different port.

  1. Find the service name or number in the reference. Read the transport together with the number in each matching entry.
  2. In a configuration note, record which side listens for the service and which side chooses the temporary client port. For the complete assignment list consult IANA.

Common ports and service endpoints diagram

  1. Client TCP 53124
  2. Server TCP 443
  3. Reply to TCP 53124
A single connection uses a port at each end. The reply travels back to the client's selected port.

Worked examples

Read a DNS resolver configuration

  1. A resolver configuration lists DNS on port 53. Look up 53 and consider both UDP and TCP.
  2. For a conventional UDP query, model the client as sending from a temporary port to destination UDP 53. The response reverses those endpoints.
  3. A TCP exchange with the same DNS service uses TCP 53. Record the transport explicitly when describing the two cases.

Common ports and service endpoints: Distinguish two simultaneous HTTPS sessions

  1. A workstation at 192.0.2.10 uses TCP 53124 to reach 198.51.100.8 on 443.
  2. A second connection from that workstation uses 53125. The server address, port and transport are identical.
  3. The source port distinguishes the two TCP connections. A UDP exchange with those same numbers would belong to another transport.

Reference table

TCP/UDP Port Reference reference
IANA rangeEndpointsInterpretation
System0–1023Low-numbered assignments, including reserved values
User1024–49151Assignments available through registration
Dynamic / private49152–65535Available for local use without registration

Reading the result

A matching entry tells you how to label a conventional service. Establishing which application is configured on an actual host requires that system’s configuration. The local table is a curated reference and can omit valid assignments.

Common mistakes

  • A return packet often has the service port as its source. Treating that number as the destination in both directions reverses the meaning of the record.
  • Operating systems can choose different ephemeral ranges. IANA’s dynamic range does not fix the local selection policy.

Frequently asked questions

What is the largest port number?

A 16-bit field can represent 0 through 65535. Port zero is reserved in the registry.

Does a missing search result imply an unassigned port?

No. This table is selective. Check the full IANA registry for the exact number and transport when documenting an unfamiliar service.

Can two services use port 53?

TCP 53 and UDP 53 are separate endpoints. Processes can also bind different local IP addresses. Whether a particular bind succeeds depends on the socket configuration.

Does selecting a port here check a server?

The reference looks up locally stored service conventions. Listener configuration and application logs provide evidence about an actual installation.

Is a port number alone enough to identify a service?

No. Interpret it with transport protocol, destination host, listening process, and configuration. A familiar port assignment is a convention, not proof of the running service.

What is the valid TCP or UDP port range?

Port fields are 16 bits, so values range from 0 through 65,535. Operating systems and registries assign conventions and usage categories within that range.

Can the same number be used by TCP and UDP?

Yes. TCP and UDP have separate transport namespaces, so the same numeric port can be assigned to different services or listeners for each protocol.

Does an open port prove a host is vulnerable?

No. It only indicates that a service or network behavior responded under the test conditions. Security depends on the service, configuration, exposure, and authorization context.

What are ephemeral ports used for?

A client operating system commonly selects a temporary source port for an outgoing connection. The range and reuse policy vary by operating system and configuration.

Does a service always listen on its registered port?

No. A service can use another port, and unrelated software can bind a familiar number. Confirm the protocol and service response rather than relying only on a number.

Are ports zero through 1023 always privileged on every platform?

They are the well-known range in IANA terminology, but local operating-system rules determine which users may bind particular ports.

Why are TCP 443 and UDP 443 both used for web traffic?

Traditional HTTPS commonly uses TCP 443, while HTTP/3 uses QUIC over UDP, commonly also on 443. Transport must be considered alongside the number.

What is a listening port?

It is a transport endpoint bound by a process or service to accept traffic for a protocol and local address. A port number alone does not identify the process or prove external reachability.

Why can a firewall rule need both protocol and port?

TCP and UDP have separate port spaces and different traffic behavior. A rule that permits TCP 53 does not automatically permit UDP 53.

What is the difference between assigned and observed port use?

A registry can document a service's customary port assignment, while a packet capture or socket table shows what a particular system is actually using.

Can port scanning identify the exact software version?

A port response alone cannot reliably establish a version. Service banners can be hidden or changed, and the same port can host different implementations.

Does opening an inbound port guarantee access?

No. The service must listen, host and network firewalls must permit it, and routing or translation must deliver traffic to the host.

Further learning and references