ssid.ai/blog
router-security

What port forwarding does, and how to set it up on your router

TL;DRPort forwarding opens one port on your router so an outside device can reach a specific device inside your network directly, bypassing normal NAT blocking.

Short answer: port forwarding tells your router to send traffic arriving on a specific port straight to one device on your network, instead of blocking it the way it normally blocks unsolicited inbound traffic. You add a rule with the port number, the protocol, and the local IP address of the device that should receive it.

Why your router blocks inbound traffic by default

Every device on your home network shares one public IP address, assigned by your ISP. Your router uses NAT (network address translation) to sort incoming traffic and route it to the right device internally. By default, traffic that wasn’t requested by something inside your network gets dropped, because the router has no idea which device it’s for. That default is what keeps a device you didn’t expose reachable only from inside your own network.

Port forwarding is the exception you add on purpose: a rule that says “traffic on port X always goes to this specific device,” regardless of whether anything inside asked for it first.

When you actually need it

Most everyday use of the internet doesn’t need a forwarding rule. Browsing, streaming, and video calls all work because the device inside your network initiates the connection, and the router already knows where the reply should go. Forwarding matters when something outside your network needs to start the connection instead:

  • Hosting a game server that other players connect into
  • Reaching a home security camera’s live feed from outside your WiFi
  • Running a self-hosted service, like a home file server or a personal website
  • Remote-accessing a computer or NAS directly by IP rather than through a cloud relay

If you’re only joining someone else’s game server or making outbound calls, you don’t need a rule — that traffic already flows through NAT without help.

The security tradeoff

Opening a port removes the one thing keeping that device off the open internet: the default block. The device behind that rule is now directly reachable by anyone who finds it, not just people you intend to let in. That’s a reasonable tradeoff for a device you’re actively maintaining and updating, and a bad one for something running outdated software you’ve forgotten about.

Two habits reduce the risk:

  • Forward the narrowest thing you can. A single port for a single service beats forwarding a wide range “just in case.”
  • Keep whatever’s behind that port current. A forwarded port on outdated software is the most common way a home device gets found and probed.

If you’re ever unsure whether an unfamiliar device is actually yours, that’s a separate check worth doing on its own — see how to tell if someone is stealing your WiFi for how to read your router’s connected-devices list.

Setting up a rule

The exact menu wording varies by brand, but the steps are the same everywhere:

  1. Log into your router’s admin page. If you don’t already know the address, see how to log into your router — most brands use 192.168.1.1 or 192.168.0.1.
  2. Find the section called Port Forwarding, Virtual Server, or NAT Forwarding, usually under an “Advanced” or “WAN” menu.
  3. Add a new rule with the port number, the protocol (TCP, UDP, or both — check what the service you’re hosting requires), and the local IP address of the device that should receive the traffic.
  4. Set a DHCP reservation for that device, if your router supports it, so its local IP doesn’t change and silently break the rule.
  5. Save and test from outside your network, for example over mobile data with WiFi off, since testing from inside the same network doesn’t confirm inbound traffic actually reaches the device.

Not every router uses identical labels for this menu. If yours isn’t listed under those names, check the manufacturer’s admin page directly through the router directory — the default login and menu layout vary enough by brand that it’s worth confirming yours before assuming the feature is missing.

When to remove a rule

A forwarding rule is only as safe as it is current. If you stop using the service behind it — you switched game servers, decommissioned the camera, migrated the file server — the rule doesn’t turn itself off. It sits there, still routing to whatever device holds that local IP now, which may not even be the same device anymore. Reviewing your router’s port-forwarding list alongside its connected-devices list is a reasonable thing to do the same afternoon you check for unfamiliar devices.

Frequently asked questions

Is port forwarding the same as opening my whole network to the internet?

No. A forwarding rule opens one port and routes it to one device's local IP address. Every other port on your network stays blocked by NAT exactly as before.

Do I need port forwarding for online gaming or video calls?

Usually not. Most consoles and call apps use NAT traversal techniques like UPnP or STUN to punch through automatically. Forwarding is for hosting something, like a game server or a camera's remote feed, not for joining one.

Why did my forwarded port stop working after a router reboot?

Your device's local IP address probably changed. Most routers hand out DHCP addresses that can shift on reboot, which breaks a rule pointed at the old address. Set a DHCP reservation for the device so its local IP stays fixed.

Is UPnP a safe alternative to manual port forwarding?

It's more convenient but less controlled: UPnP lets any device on your network open a port for itself, without you approving each one. A manually configured rule is narrower and easier to audit later.