How to Set Up Port Forwarding on Your Router

Set up port forwarding on any router: reserve a fixed IP, add the port rule, test it, and fix common problems such as CGNAT and double NAT.

QUICK ANSWER
Port forwarding in 5 steps
  1. Give the device a fixed local IP (DHCP reservation).
  2. Log in to your router and open Port Forwarding or Virtual Server.
  3. Add a rule: port, protocol (TCP/UDP) and the device IP.
  4. Save, then test from outside your network.

I have opened a port on my router for a game server, and the first time felt risky. One wrong number and the service just sits there, silent.

Port forwarding tells your router where to send traffic that arrives on one port. This guide shows you how to set it up and check that it works. To set up port forwarding, add a rule in your router with the port number and the device it should reach.

Before you start

In my experience, this is the part that trips most people up.

  • Give the device a fixed local IP. Create a DHCP reservation in your router so the device always keeps the same address, for example 192.168.1.50. Otherwise the forward breaks when the address changes.
  • Know the port and protocol. The game, app or device documentation lists the port numbers and whether they use TCP, UDP or both.
  • Check for CGNAT. If your router’s WAN IP is different from the IP shown by What Is My IP, or starts with 100.64 to 100.127, your provider uses carrier-grade NAT and port forwarding will not work without their help.

How to set up port forwarding

I have seen this done wrong more than once, so I keep it simple here.

  1. Log in to your router, for example 192.168.1.1.
  2. Find Port Forwarding, often under Advanced, NAT, Virtual Server, Firewall or Gaming.
  3. Add a new rule: give it a name, enter the external port (or range), the internal port, the protocol and the device’s local IP.
  4. Save or apply the rule, and restart the device if needed.
  5. Test it from outside your network, for example with mobile data, or with an online port checker.

Where to find it on popular routers

I check this before I change anything else.

RouterMenu path
TP-LinkAdvanced, NAT Forwarding, Virtual Servers
NetgearAdvanced, Advanced Setup, Port Forwarding / Port Triggering
ASUSWAN, Virtual Server / Port Forwarding
LinksysSecurity, Apps and Gaming, Single Port Forwarding
D-LinkFeatures, Port Forwarding (or Advanced, Virtual Server)
XfinityXfinity app, WiFi, Advanced settings, Port forwarding
Google Nest WifiGoogle Home app, Wi-Fi, Advanced networking, Port management

Port forwarding vs UPnP vs DMZ

I treat this as a quick check, not a deep setting.

  • Port forwarding opens only the ports you choose to one device. It is the safest option.
  • UPnP lets apps and consoles open ports automatically. Convenient, but any app on the network can open ports.
  • DMZ sends all incoming traffic to one device. Avoid it except for short tests.

Common ports

I would rather confirm it now than fix it later.

UsePortProtocol
Web server80, 443TCP
Remote Desktop (Windows)3389TCP
Minecraft Java server25565TCP
SSH22TCP
FTP21TCP

Only open ports you need, and close them when you stop using them. Never expose remote desktop or camera logins with weak passwords.

Port forwarding not working?

I always start with the router page for this.

  • Confirm the device IP in the rule matches its current local IP.
  • Check the firewall on the device itself (for example Windows Defender Firewall).
  • Make sure no other rule uses the same external port.
  • If you have a modem router plus your own router (double NAT), forward the port on both, or put the modem in bridge mode.
  • Ask your provider whether you are behind CGNAT.

Give the device a fixed address first

In my experience, this is the part that trips most people up.

Port forwarding points a port at one local IP address. If that device gets a different address next week, the rule quietly stops working. That’s the most common reason forwarding “breaks on its own”.

Fix it with a DHCP reservation on your router. Find the device in the connected list, choose reserve or always use this IP, and save. Your console, camera or server will get the same address every time, and your forwarding rule keeps working.

Check that a forwarded port is open

I have seen this done wrong more than once, so I keep it simple here.

  1. Make sure the app or game on the device is running. A port only shows as open if something is listening.
  2. Use an online open port checker with your public IP and the port number.
  3. If it shows closed, check the device’s own firewall, the local IP in the rule, and whether you’re behind double NAT or carrier-grade NAT.

FAQs About How to Set Up Port Forwarding on Your Router

Common causes are a changed local IP, a firewall on the device, double NAT, or an ISP using carrier-grade NAT. Check each in that order.

UPnP opens ports automatically, which is convenient for games. Manual forwarding gives you more control and is considered safer.

Not always. It helps when your console shows a strict or moderate NAT type, or when hosting matches.

Usually not, because they use carrier-grade NAT. Use IPv6 or a relay service instead.

They’re two kinds of connections. Many games need both, so if a guide lists TCP/UDP, choose Both in your router.

The team behind this guide

Kevin DoyleKevin Doyle found this topic
SEO Research Lead
Focus: Topic & Keyword Research

Marcus LeeMarcus Lee wrote this guide
Router Login & Setup · Published October 19, 2026
Focus: ISP & Modem Routers

Nina PetrovaNina Petrova designed the visuals
Graphic Designer
Focus: Brand & Illustrations

AwaisAwais verified the facts
Founder & Editor-in-Chief · Last verified: November 2026
Focus: Final fact-check & publishing

Similar Posts