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.
- Find the service name or number in the reference. Read the transport together with the number in each matching entry.
- 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
- Client TCP 53124
- Server TCP 443
- Reply to TCP 53124
Worked examples
Read a DNS resolver configuration
- A resolver configuration lists DNS on port 53. Look up 53 and consider both UDP and TCP.
- For a conventional UDP query, model the client as sending from a temporary port to destination UDP 53. The response reverses those endpoints.
- 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
- A workstation at 192.0.2.10 uses TCP 53124 to reach 198.51.100.8 on 443.
- A second connection from that workstation uses 53125. The server address, port and transport are identical.
- The source port distinguishes the two TCP connections. A UDP exchange with those same numbers would belong to another transport.
Reference table
| IANA range | Endpoints | Interpretation |
|---|---|---|
| System | 0–1023 | Low-numbered assignments, including reserved values |
| User | 1024–49151 | Assignments available through registration |
| Dynamic / private | 49152–65535 | Available 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
- IANA Service Name and Transport Protocol Port Number Registry
Reference source for the concepts and service described in this guide.
- IANA service name and transport port registry
- RFC 9293 · Transmission Control Protocol

