Open Ports and Firewalls Explained for Home and Small Office
A home or small-office network is safest when nothing on it can be reached from the internet unless someone inside started the conversation. Open ports and port forwarding are how that changes, sometimes on purpose and sometimes without anyone noticing. This guide explains what a port is, what a firewall does, what opens a door to the internet, which services should never sit behind one, and how to check your own router. It uses our Port Scanner Simulator, which, despite its name, scans nothing: it is a reference table.
What a port is
An internet address gets traffic to the right device. A port number gets it to the right program on that device. Think of the address as a building and the port as a numbered door. Some numbers are conventions: secure websites use port 443, plain websites 80, Windows file sharing 445, and Remote Desktop 3389. A program that waits for connections on a port is said to be "listening", and a port with a listening program that can be reached is "open".
Your own devices open short-lived ports all the time when they connect out to websites. That is normal and is not what this guide is about. What matters is whether anyone on the internet can start a connection to a program inside your network.
What a firewall does
A firewall decides which connections are allowed. A household usually has two:
- The router's firewall. A typical home router lets your devices connect out and lets the replies back in, but drops connections that arrive from the internet uninvited. That default is what keeps most home devices out of reach.
- The computer's own firewall. Windows and macOS each include one. It protects the computer on any network, including hotel and café Wi-Fi where the router is not yours.
Keep both on. Never turn a firewall off to make a game, camera or program work; if something needs an exception, add a specific one, or ask the maker's support pages what it needs.
What opens a door to the internet
The router's firewall only blocks what it has not been told to allow. Four settings tell it to allow things:
- Port forwarding (sometimes "virtual servers" or "port mapping"): a rule that sends anything arriving on a given port to one device inside. Someone set each rule up, perhaps years ago for a game server or a camera.
- UPnP (Universal Plug and Play): lets programs and devices on your network create forwarding rules for themselves, without asking. Convenient for games consoles; it also means a rule can appear that nobody in the house chose.
- DMZ or "exposed host": sends everything not otherwise handled to one device, leaving it fully exposed. Avoid it.
- Remote administration: makes the router's own settings page reachable from the internet. Leave it off.
Looking up a port with the simulator
Enter one or more port numbers in the Port Scanner Simulator and it returns the service that usually uses that port and an editorial rating of the risk of exposing it to the internet. It does not connect to anything, look at your network or test any device. Here is what it returns for some numbers you might find on a router's port forwarding page:
| Port | Usual service | Simulator's rating | What it means for a home or small office |
|---|---|---|---|
3389 | RDP (Remote Desktop) | High | Remote control of a Windows computer. Should never face the internet. |
445 | SMB (Windows file sharing) | High | Shared folders. Keep inside the network only. |
23 | Telnet | High | Old, unencrypted remote login. Should not be in use at all. |
21 | FTP | High | File transfer that sends passwords unencrypted. |
3306 and 5432 | MySQL and PostgreSQL databases | High | Databases belong on a private network, never facing the internet. |
22 | SSH | Medium | Encrypted remote administration; still a door, better kept closed at home. |
80 and 8080 | HTTP and alternative HTTP | Medium | Often a camera's or storage device's web page. Should not face the internet. |
443 | HTTPS | Low | The connection is encrypted. "Low" does not mean exposing a device's page is safe. |
1900 | Unknown / unassigned | Unknown | UPnP uses this port, but the tool's table does not include it. |
50000 | Ephemeral | Ephemeral | In the range devices use temporarily for their own outgoing connections. |
Read the ratings as the site's editorial judgment, not a measurement. A "low" rating describes the protocol, not the device behind it: an out-of-date camera page on port 443 is still an out-of-date camera page. And the table is short: it does not know several ports a household meets, such as UPnP's.
The services that should never face the internet
Whatever the port number, these should not be reachable from outside the house or office:
- remote desktop and remote control of any computer;
- shared folders and network storage;
- databases;
- the admin pages of the router, cameras, printers and storage devices;
- anything using Telnet or plain FTP.
The US Cybersecurity and Infrastructure Security Agency's ransomware guidance says plainly not to expose services such as remote desktop on the web, because exposed remote access is a common way in. See ransomware protection basics.
How to check what your own router exposes
- Sign in to your router's settings page or app (the label or the provider's help pages show how). Use the admin password you set; if it is still the default, change it first (see home Wi-Fi and router security).
- Open the port forwarding page. Write down each rule: the port, and the device it points to. For each one, ask who set it up and whether it is still needed. Delete those you cannot explain or no longer use.
- Open the UPnP page. Some routers list the rules devices have created for themselves. Turn UPnP off unless a device genuinely needs it, then check the devices still work.
- Check that DMZ or "exposed host" and remote administration are off.
- Check that the router's firewall is on.
- Take a photo of the final settings, and look again every few months or after adding a new games console, camera or storage device.
That is all this guide asks you to do: look at your own router's own settings. If you found a rule pointing at a device, update that device, change its password, and turn on two-factor sign-in on its account if offered.
Reaching a home or office computer from outside, safely
If you need to reach a computer while away, do not forward Remote Desktop or file sharing through the router. Safer routes:
- a VPN into your own network, run by the router or by your organization, with two-factor sign-in;
- the secure remote-access feature offered by the operating system's or the device maker's own account, with two-factor sign-in turned on;
- for files, a cloud storage account with two-factor sign-in instead of a shared folder that faces the internet.
A small office should treat this as part of its basic setup; see small office security basics.
Never scan what is not yours
The simulator scans nothing, and this guide gives no scanning instructions on purpose. Scanning or probing any network or device you do not own or have written permission to test is not acceptable and may be illegal, whatever the reason. If a business wants its own systems tested, it hires a qualified professional with a written agreement that says exactly what may be tested.