Your IPv4 address:
Operating system:

What is a network port? TCP, UDP and open ports

One server can run a website, a mail service and remote access behind a single IP address. The port number is how traffic reaches the right one. TCP and UDP, the two main transport protocols, each attach a port to every exchange, and a protocol, an IP address and a port together name one endpoint. A port is a logical number, not a physical socket on your router.

Which port numbers exist and who uses them

A port number is a 16-bit value from 0 to 65535. IANA, the body that keeps the registry, groups them into system ports 0–1023, user ports 1024–49151 and dynamic or private ports 49152–65535. HTTP commonly uses TCP 80 and HTTPS uses TCP 443. These are conventions: a service can be configured to listen on another number.

A connection has a port at each end. The server listens on a known destination port, and the client usually picks a temporary source port for its side of the conversation. Seeing a high-numbered port on your own computer is therefore normal and does not imply that a public service is open.

The same number on TCP and on UDP is two different ports

TCP and UDP have separate port spaces, so one number can serve a different purpose in each. A successful TCP connection says nothing about a UDP service on that number, and each has to be tested in its own way. The comparison of TCP and UDP explains how the two transports differ.

What a port test means by “open”

For TCP, an external test may call a port open when it can complete a connection to a listening program. The other outcomes are a closed response, dropped packets and a timeout. They have different meanings, and a firewall can make them hard to tell apart. UDP testing is less conclusive, because a silent service may simply not respond to the probe. The article on open, closed and filtered ports walks through each result.

Keep the limits of the test in mind. A successful connection says nothing about whether the application is secure or correctly configured. A failed test, for its part, does not identify the layer that blocked it.

Why a listening program is not reachable from the Internet

A program listening on a local address is not automatically reachable from outside. The host firewall, the router’s port forwarding, provider filtering and carrier-grade NAT each sit in the path, and any of them can stop the connection. Check the listening address and the protocol first, then test from outside the local network.

Where you test from matters. A result obtained inside the home network may differ from a test over mobile data, because the router can handle connections to its own public address differently. Repeat the test from a genuinely external network before you ask your provider to change anything.

Opening a port without creating a problem

Expose only the services you need. Configure authentication, keep the software updated and restrict source addresses where practical. If a service is meant only for local use, bind it to loopback or a private interface and do not forward it at all.

Before you change firewall rules, write down the expected protocol and destination port. After the change, recheck from a separate network, and remove obsolete rules when the service is retired. When you report a problem, give the service name, the transport protocol, the destination port and the place you tested from.