What is a port?
An IP address is not enough. A server can run a website, email and file handling at the same time, and the traffic has to find the right program.
The port is the number that decides that. The address is the house, the port is which door you knock on.
The numbers you meet
There are 65,535 ports, but in practice only a handful keep coming back.
80 and 443 are web. 443 is the encrypted version, meaning https, and it is the one almost all web traffic runs on today.
25, 587 and 993 are email. Sending and fetching, respectively.
3389 is Remote Desktop to Windows.
22 is SSH, remote administration of servers.
If you see an address written as 192.168.1.10:3389, what comes after the colon is the port.
Why it matters for security
A port open to the outside is a door someone can knock on from the internet. It gets tested automatically, all the time, by programs that scan address ranges without knowing or caring who you are.
Two ports are especially worth checking. 3389 open to the internet is one of the most common ways in for ransomware attacks on small companies, and it was almost always opened so that someone could work from home "temporarily" during a period that never ended. If Remote Desktop is needed it should go through a VPN, not sit open.
Ports to an old server that nobody uses any more but that still answers. Scanners find them long before you do.
Check what is open
The guide Quick test: does your firewall survive a basic port scan? goes through how you see it from the outside.
The rule afterwards is simple: for every open port, you should be able to say why it is open and who uses it. If nobody can answer, close it. Nobody has ever regretted closing a port they could not justify, but some have regretted the opposite.
A common misunderstanding
A closed port does not mean the service is switched off. Remote Desktop can work perfectly well from inside the office even when the port is closed to the outside.
That is usually exactly how you want it: access from the inside, no door from the outside.
Next part: DNS, the thing that translates names into addresses and is behind more faults than you would think.
Other parts in this series:
- Secure Wi-Fi
- What is an IP address?
- What is a port? (this article)
- What is DNS?
- Slow Wi-Fi
- The internet is down
- What does the internet actually see of you?