Skip to content
AdminKit

Port forwarding

What is Port forwarding?

Port forwarding is a router rule that takes inbound traffic on a specific public port and forwards it to a chosen device and port on the local network, which is how a self-hosted service can accept connections from the internet. AdminKit's port check tool confirms whether a forwarded port is actually open and reachable from outside.

By AdminKit team, Netbase JSC · Updated

Port forwarding is a rule configured on a router or firewall that takes inbound traffic arriving on a specific port of the public IP address and forwards it to a chosen device and port on the local network. It is how a game server, security camera, or self-hosted web app behind a home or office router can accept connections initiated from the internet, since without it the router’s NAT would simply drop unsolicited inbound packets. The tradeoff is that whatever is listening on the forwarded port becomes directly reachable by anyone on the internet, not just intended users, so an outdated or misconfigured service behind a forwarded port is a common way home and small-office devices end up exposed. Netgate’s pfSense port-forwarding documentation makes the same point from the firewall side: its default configuration allows no connections initiated from the internet, and once a port forward is added, the target systems “must use local host-based controls to secure services forwarded through the firewall.” Universal Plug and Play (UPnP), whose local-network scope is documented by the Open Connectivity Foundation, which now stewards it, lets applications request forwarding rules automatically — convenient, but it removes the manual review step that catches unnecessary exposure. PCP (Port Control Protocol) is a newer way to request the same kind of mapping, defined in RFC 6887 (current document status at its IETF Datatracker entry), with the added advantage of working across a carrier’s own NAT, not just a single home router. A service deliberately bound only to its loopback address can’t be exposed this way at all, since port forwarding only redirects traffic arriving from outside, not connections the device makes to itself.

Port forwarding is part of AdminKit’s IP & network cluster; the full AdminKit glossary lists other related terms.

Frequently asked questions

Is port forwarding the same as opening a firewall port?

They're related but not identical -- port forwarding redirects inbound traffic on a public port to a specific internal device and port, while a firewall rule simply allows or blocks traffic; most setups need both working together for an inbound connection to actually reach a device.

Is UPnP safe to leave enabled?

UPnP lets applications request forwarding rules automatically without manual review, which is convenient but removes the step that would otherwise catch unnecessary exposure, so a device compromised on the local network can use UPnP to open ports to itself without your knowledge.

Does port forwarding work if I'm behind CGNAT?

Not reliably -- because your router's own public IP is itself shared and translated again by your ISP under CGNAT, forwarding a port on your home router often doesn't make the service reachable from the broader internet.

How do I check if a forwarded port is actually open?

AdminKit's port check tool confirms directly whether a forwarded port is reachable from outside your network, rather than just configured on the router.