How to Set Up Port Forwarding | 5 Step Process

Port forwarding tells your router to send certain incoming internet traffic to a specific device on your network, like a game console, security camera recorder or game server. Without it, the router blocks unrequested incoming connections.

You’d use it to:

  • Fix a strict or moderate NAT type on PS5 or Xbox
  • Host a game server (Minecraft, Valheim, etc.)
  • Reach a security camera system or home server from outside
  • Run some remote access tools

How to Set Up Port Forwarding: Quick Steps

  1. Give the device a fixed local IP using DHCP reservation.
  2. Find the ports the game or app needs.
  3. Log in to your router or open your router app.
  4. Create a port forwarding rule with the device’s IP, ports and protocol.
  5. Save and test with an open port checker.

Step 1: Give the Device a Fixed IP

Port forwarding points to an IP address. If that IP changes, the rule breaks.

  1. Find the device’s MAC address; see how to find your MAC address.
  2. In your router, open DHCP Reservation or Address Reservation.
  3. Assign the device a fixed IP and save.

More on this in static vs dynamic IP.

Step 2: Find the Ports You Need

Check the game’s or app’s support page. Common examples:

Device or appPorts (from official support pages)
PS5 / PS4TCP: 1935, 3478–3480; UDP: 3074, 3478–3479
XboxUDP 88; UDP/TCP 3074; UDP/TCP 53; TCP 80; UDP 500, 3544, 4500
Minecraft Java serverTCP 25565
Remote Desktop (Windows)TCP 3389 (avoid exposing it; use a VPN instead)

Only forward what you need. Each open port is a potential way in.

Step 3: Log In to Your Router

Common router addresses: 192.168.1.1, 192.168.0.1, 10.0.0.1 (Xfinity) or 192.168.1.254 (AT&T). Many ISP gateways handle port forwarding in their app instead:

ISPWhere to set it
XfinityXfinity app > WiFi > advanced settings > Port forwarding
SpectrumMy Spectrum app, router advanced settings (supported routers)
AT&T192.168.1.254 > Firewall > NAT/Gaming
Verizon FiosRouter settings > Advanced > Port Forwarding

Menu names change over time; look for “Port forwarding,” “NAT,” “Virtual server” or “Gaming.”

Step 4: Create the Rule

Enter:

  • Name: something clear, like “PS5”
  • Device / internal IP: the fixed IP from Step 1
  • Protocol: TCP, UDP or Both, as listed
  • External port and internal port: usually the same numbers
  • Save, and repeat for each port range

Step 5: Test It

Use our open port checker while the game or app is running. Then check your console’s NAT type; see NAT type explained, PS5 NAT type failed and Xbox NAT type strict.

Why Port Forwarding Doesn’t Work (and Fixes)

CauseFix
Double NAT (ISP gateway + your router)Put the gateway in bridge mode; see why in how to daisy chain routers
CGNAT from your ISPAsk for a public IP, or use other methods; see what is CGNAT
Device IP changedUse DHCP reservation
Device firewall blocks the portAllow the app in Windows Defender Firewall
App isn’t runningPorts only show open while something is listening
ISP blocks the portSome ISPs block common server ports; use a different port

5G home internet and some fiber services often use CGNAT, which blocks incoming connections no matter what you set.

Port Forwarding vs UPnP vs DMZ

Port forwardingUPnPDMZ
How it worksYou open specific portsApps open ports automaticallyAll ports go to one device
ControlHighLowNone
SecurityGood (if minimal)ModeratePoor
Best forServers, cameras, stubborn NATConsoles, casual gamingAvoid, except troubleshooting briefly

For most gamers, turning on UPnP fixes NAT without manual rules. See what is UPnP.

Real-World Example

Say your friends can’t join your Minecraft Java server. You reserve 192.168.1.50 for your PC, forward TCP 25565 to it, and allow Java in Windows Firewall. The port checker still shows closed. Your ISP gateway sits in front of your own router, creating double NAT. Putting the gateway in bridge mode fixes it, and friends connect using your public IP.

FAQs

Is port forwarding safe?

It’s safe when you open only the ports you need, keep the device updated and remove rules you no longer use.

Does port forwarding lower ping?

No. It helps NAT type and connections, not latency. See how to lower ping.

Do I need port forwarding for PS5 or Xbox?

Usually not, if UPnP is on. Use it if NAT stays strict or moderate.

Why does my port show closed even with a rule?

The device isn’t listening, the firewall blocks it, there’s double NAT, or your ISP uses CGNAT.

Can I port forward on 5G home internet?

Usually not, because of CGNAT. Some providers offer workarounds; check with yours.

Should I use the DMZ instead?

No. A DMZ exposes all ports on that device. Use specific port forwarding rules.



Leave a Comment