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
- Give the device a fixed local IP using DHCP reservation.
- Find the ports the game or app needs.
- Log in to your router or open your router app.
- Create a port forwarding rule with the device’s IP, ports and protocol.
- 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.
- Find the device’s MAC address; see how to find your MAC address.
- In your router, open DHCP Reservation or Address Reservation.
- 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 app | Ports (from official support pages) |
|---|---|
| PS5 / PS4 | TCP: 1935, 3478–3480; UDP: 3074, 3478–3479 |
| Xbox | UDP 88; UDP/TCP 3074; UDP/TCP 53; TCP 80; UDP 500, 3544, 4500 |
| Minecraft Java server | TCP 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:
| ISP | Where to set it |
|---|---|
| Xfinity | Xfinity app > WiFi > advanced settings > Port forwarding |
| Spectrum | My Spectrum app, router advanced settings (supported routers) |
| AT&T | 192.168.1.254 > Firewall > NAT/Gaming |
| Verizon Fios | Router 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)
| Cause | Fix |
|---|---|
| Double NAT (ISP gateway + your router) | Put the gateway in bridge mode; see why in how to daisy chain routers |
| CGNAT from your ISP | Ask for a public IP, or use other methods; see what is CGNAT |
| Device IP changed | Use DHCP reservation |
| Device firewall blocks the port | Allow the app in Windows Defender Firewall |
| App isn’t running | Ports only show open while something is listening |
| ISP blocks the port | Some 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 forwarding | UPnP | DMZ | |
|---|---|---|---|
| How it works | You open specific ports | Apps open ports automatically | All ports go to one device |
| Control | High | Low | None |
| Security | Good (if minimal) | Moderate | Poor |
| Best for | Servers, cameras, stubborn NAT | Consoles, casual gaming | Avoid, 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.
- How to Return Spectrum Equipment | 3 Main Ways
- Mac Not Connecting to Wi-Fi: How to Fix It
- Modem vs Router: What’s the Difference?
- “No Internet, Secured” on Windows: How to Fix It
- How to Set Up Parental Controls on Your Router | 4 Step Solution
- How to Set Up Port Forwarding | 5 Step Process