How it works · 8 of 36 Foundation
What is a network port, and why do ports 80 and 443 matter?
Which app on a device gets the data
Network port: A port is a number from 0 to 65535 that picks which app on a device gets the data. The IP address finds the device; the port finds the app. Web pages use 443 (HTTPS) or 80 (plain HTTP); email uses 25.
Loading the animation…
Say it like this A port is a number that picks which app on a device gets the data: the IP address finds the building, the port finds the flat.
Under the hood — for builders
- Real case: one address, many apps
- The card's server is one machine at one IP address. Every door on it is a port number from IANA's official list:
- How the 65,536 port numbers are split
- A port is a 16-bit number, 0 to 65535. The list is cut into three ranges; only the first two hold registered services:
- Worked example: two tabs, one site
- A socket is an IP address plus a port. Each conversation is a pair of sockets, so two tabs on the same site never mix up replies:
- Measure it
- Windows: netstat -an lists open conversations as address:port pairs. Look for :443 against each site.
- Watch out
- Every open port is a door anyone can knock on. Close the ones no app needs; keep 22 (admin) off the open internet.
- Sources
- IANA Service Name and Port Number Registry (CSV). RFC 6335, port number procedures and ranges. Read 28 Nov 2026.
What happens in the network ports animation, step by step?
- One server runs a website, email and a remote-admin tool. A parcel arrives at its IP address, but which app is it for?
- The port number on the parcel picks the app. 443 means the website. The IP address finds the building; the port finds the flat.
- Your turn: tap what you want to do and watch which door it goes to.
- Port 80 is plain web traffic; port 443 is web traffic sealed with HTTPS. Many sites answer on 80 only to send you on to 443.
- Your phone uses a port too: a temporary one for each conversation, like 51515, so the reply reaches the right app on your side.
- The IP address finds the building, the port finds the flat. Next: once data reaches the right port, how is it sent: checked, or fast?
What everyday example explains network ports?
The IP address finds the building, the port number finds the flat inside it.
Why should a team care about network ports?
"connection refused", firewall rules and every server setup screen talk in ports; opening the wrong one is a common security hole.