Port Forwarding for Gaming: Which Ports to Open and How to Do It


Port Forwarding for Gaming: Which Ports to Open and How to Do It

Why Port Forwarding Actually Matters for Gaming

Your router is protective by default. It blocks unsolicited incoming traffic, which is great for security but terrible for gaming. When a game server tries to send data to your PC or console, your router can delay it, drop it, or reject it entirely. The result is 150ms ping when you should be sitting at 30ms, NAT Type Strict errors on PlayStation and Xbox, rubber-banding in shooters, and failed matchmaking in games like Destiny 2 or Call of Duty.

Port forwarding tells your router: “When traffic arrives on this specific port, send it directly to my gaming device — no questions asked.” It creates a dedicated lane for your game data. Done correctly, you can expect ping drops of 20–80ms in some cases, stable connections during peak hours, and NAT Type changing from Strict to Open — which unlocks better matchmaking pools and peer-to-peer connections.

This guide covers the exact ports, the exact steps, and the exact settings. No vague instructions.

Before You Touch the Router: Do This First

Port forwarding only works reliably if your gaming device always has the same local IP address. If your device’s IP changes, the forwarding rule points at nothing. You need to assign a static local IP first.

Assign a Static IP on PC (Windows 10/11)

  • Open Settings → Network & Internet → Change adapter options
  • Right-click your active connection → Properties
  • Select Internet Protocol Version 4 (TCP/IPv4)Properties
  • Set a static IP like 192.168.1.150 (pick something outside your router’s DHCP range — check your router’s DHCP settings to find the range, then go above or below it)
  • Subnet mask: 255.255.255.0
  • Default gateway: your router’s IP, typically 192.168.1.1 or 192.168.0.1
  • Preferred DNS: 8.8.8.8 (Google) or 1.1.1.1 (Cloudflare)

Assign a Static IP on PS5 / PS4

  • Go to Settings → Network → Set Up Internet Connection
  • Choose your connection → Advanced Settings
  • Set IP Address to Manual and enter the same values as above with a unique IP like 192.168.1.151

Assign a Static IP on Xbox Series X/S / Xbox One

  • Go to Settings → General → Network Settings → Advanced Settings
  • Select IP Settings → Manual and enter your static IP, subnet, and gateway

How to Access Your Router’s Port Forwarding Settings

  • Open a browser and type your router’s IP address — usually 192.168.1.1 or 192.168.0.1. Not sure? Open Command Prompt on Windows and type ipconfig — look for “Default Gateway.”
  • Log in. Default credentials are often printed on the back of the router. Common defaults: admin/admin, admin/password, or admin/[blank].
  • Look for a section called Port Forwarding, Virtual Server, or NAT — the exact name depends on your router brand.

Popular routers and where to find port forwarding:

  • ASUS routers: Advanced Settings → WAN → Virtual Server / Port Forwarding
  • Netgear: Advanced → Advanced Setup → Port Forwarding / Port Triggering
  • TP-Link: Advanced → NAT Forwarding → Virtual Servers
  • Linksys: Security → Apps and Gaming → Single Port Forwarding
  • Netgear Nighthawk / Orbi: Advanced → Advanced Setup → Port Forwarding

Port Forwarding Settings for Major Games

For each game, create a new forwarding rule. Set the internal IP to your gaming device’s static IP. Protocol will be TCP, UDP, or Both — specified below. Set both the external and internal port to the same number unless noted otherwise.

Call of Duty (Warzone / MW3 / Black Ops 6)

  • PC (Battle.net/Steam): TCP: 3074, 27014–27050; UDP: 3074, 3478, 4379–4380, 27000–27031
  • PlayStation: TCP: 1935, 3478–3480; UDP: 3074, 3478–3479
  • Xbox: TCP: 3074; UDP: 88, 500, 3074, 3544, 4500

Fortnite

  • PC: TCP: 5222, 5795–5847; UDP: 5222, 5795–5847
  • PlayStation: TCP: 1935, 3478–3480; UDP: 3074, 3478–3479
  • Xbox: TCP: 3074; UDP: 88, 500, 3074, 3544, 4500

Valorant

  • PC only: TCP: 2099, 5222–5223, 8088, 8393–8400; UDP: 7000–8000

Destiny 2

  • PC (Steam): TCP: 1119–1120, 3724, 4000, 6113, 27015–27200; UDP: 1119–1120, 3097, 3478, 3724, 4000, 6113, 27015–27200
  • PlayStation: TCP: 1935, 3478–3480; UDP: 3074, 3478–3479
  • Xbox: TCP: 3074; UDP: 88, 500, 3074, 3544, 4500

Apex Legends

  • PC (Steam/EA): TCP: 1024–1124, 9960–9969, 18000, 18060, 27015, 27036; UDP: 1024–1124, 18000, 29900
  • PlayStation: TCP: 1935, 3478–3480; UDP: 3074, 3478–3479
  • Xbox: TCP: 3074; UDP: 88, 500, 3074, 3544, 4500

Minecraft (Java Edition)

  • PC: TCP: 25565; UDP: 25565
  • This is the one you need if you’re hosting a server. Open TCP and UDP 25565 and point it at the hosting PC’s static IP.

PlayStation Network (applies to all PS4/PS5 games)

  • TCP: 80, 443, 1935, 3478–3480
  • UDP: 3074, 3478–3479
  • Opening these ports alone will typically change your NAT Type from Type 3 (Strict) to Type 2 (Moderate) or Type 1 (Open)

Xbox Live (applies to all Xbox games)

  • TCP: 3074
  • UDP: 88, 500, 3074, 3544, 4500
  • These will move your NAT Type from Strict to Open in most cases

How to Create the Port Forwarding Rule (Step-by-Step)

Using a TP-Link router as an example — the process is nearly identical on all brands:

  • Log into your router at 192.168.1.1
  • Navigate to Advanced → NAT Forwarding → Virtual Servers
  • Click Add
  • Enter a name like “PS5 Gaming” or “Warzone”
  • Set External Port to the port number (e.g., 3074)
  • Set Internal IP to your device’s static IP (e.g., 192.168.1.151)
  • Set Internal Port to the same number (3074)
  • Set Protocol to TCP, UDP, or All depending on what the game requires
  • Enable the rule and click Save
  • Repeat for each port
  • Restart your router after adding all rules

For port ranges like 3478–3480, most routers let you enter the start and end port in two separate fields rather than creating individual rules for each port.

Still lagging after trying everything?

WTFast reroutes your game traffic through optimized servers — cutting ping by 30-50% for most players.

Start Your Free WTFast Trial →

Testing If Your Port Forwarding Worked

  • Use canyouseeme.org — enter your port number and click Check. It should say “Success” not “Connection timed out.”
  • On PlayStation: Settings → Network → Test Internet Connection — NAT Type should now show Type 2 or Type 1
  • On Xbox: Settings → General → Network Settings — should show NAT Type: Open
  • In-game: check your ping in a server browser or network diagnostics. In Warzone, open the scoreboard and look at your ping. You should be hitting 20–50ms on nearby servers if your ISP and routing are clean.

Port Forwarding Didn’t Fix It — Here’s Why

Port forwarding fixes your router’s behavior. It does not fix what happens to your packets once they leave your network. If you’re getting:

  • Ping spikes to 200–400ms mid-game even with open NAT
  • Packet loss of 2–10% causing rubber-banding and hit registration failures
  • High ping to specific game servers in other regions (common in Valorant, FFXIV, or when playing with international friends)
  • Jitter — your ping fluctuating between 30ms and 150ms every few seconds

…then the problem is routing between your ISP and the game server. Your data is taking inefficient paths through multiple congested hops before reaching its destination. Port forwarding has zero control over that.

This is especially common with major ISPs like Comcast, Spectrum, and AT&T during peak hours (6pm–11pm). Your ISP routes your traffic through whatever path is cheapest, not fastest.

When Free Fixes Run Out, Use WTFast

WTFast is a Gaming Private Network (GPN) that routes your game traffic through optimized paths specifically built for low-latency gaming. Instead of taking your ISP’s congested highway, your packets travel through WTFast’s dedicated network and connect to game servers through the fastest available route.

Real-world results players report: dropping from 180ms to 45ms on overseas servers, eliminating the ping spikes that happen every evening, and fixing packet loss that ISP support swore didn’t exist. It works for PC games and supports titles including Valorant, WoW, Lost Ark, Fortnite, and hundreds more.

It’s the fix for the problem that port forwarding, DNS changes, and router restarts can’t solve — the routing between you and the server. Start your WTFast free trial here and test it against your current ping before paying anything.

While port forwarding can help reduce lag, upgrading to a router specifically designed for gaming often provides the most dramatic improvement — our Best Gaming Router Guide breaks down the top models that prioritize gaming traffic automatically.

If you’re still experiencing lag after setting up port forwarding, our comprehensive high ping troubleshooting guide covers additional network optimization techniques that can help reduce latency issues.

If you’re still experiencing lag or stuttering after opening the right ports, you might be dealing with packet loss issues that require different troubleshooting steps.

If you’re still experiencing lag after setting up port forwarding, switching to a faster DNS server specifically optimized for gaming can often provide that final ping reduction you’re looking for.

Related: Why Your Ping Is High: How Game Servers Work and What You Can Actually Fix

Related: What Is Ping in Gaming: Why It Matters More Than Download Speed

Related: Rubberbanding in Games: What Causes It and 8 Fixes That Actually Work

Related: Gaming Network Terms Explained: Every Concept Behind Your Lag Problems

If you’ve opened the necessary ports but still experience lag spikes or inconsistent performance, you might want to investigate whether your ISP is throttling your gaming traffic.

Once you’ve opened the necessary ports, setting up QoS settings to prioritize your gaming traffic will give you even better performance by ensuring your game data gets bandwidth priority over other devices on your network.

While port forwarding can significantly improve your connection quality, pairing it with a wired Ethernet connection instead of WiFi will give you the most stable, low-latency gaming experience possible.

If you’re still experiencing connection issues after opening ports, you might need to troubleshoot your NAT type settings to achieve an Open NAT status for optimal gaming performance.

While port forwarding can solve many connection issues, sometimes the problem lies with your internet routing, which is where a gaming VPN might actually improve your ping rather than hurt it.

Still lagging after trying everything?

WTFast reroutes your game traffic through optimized servers — cutting ping by 30-50% for most players.

Start Your Free WTFast Trial →

Frequently Asked Questions

Does port forwarding reduce ping?

Port forwarding can reduce ping indirectly by eliminating NAT-related delays and dropped packets caused by your router blocking or re-routing game traffic. However, it won’t fix ping caused by distance to the server or ISP routing issues — those require a different solution like a GPN or VPN optimized for gaming.

Is it safe to open ports on my router for gaming?

Yes, when done correctly. You’re forwarding specific ports to a specific internal device — not exposing your entire network. The risk increases if you forward ports to a PC running untrusted software or leave default router login credentials unchanged. Always change your router’s admin password and only forward ports that specific games actually require.

What port does PlayStation Network use?

PSN primarily uses TCP ports 80, 443, 1935, and 3478–3480, plus UDP ports 3074 and 3478–3479. Opening these on your router and pointing them at your PS4 or PS5’s static IP address is what changes your NAT Type from Type 3 to Type 2 or Type 1.

Why is my NAT Type still strict after port forwarding?

This usually means either: your device doesn’t have a static IP (the forwarding rule is pointing at an IP that changed), you didn’t forward all required ports for that platform, or your ISP uses Carrier-Grade NAT (CGNAT) — which means you don’t have a dedicated public IP and port forwarding won’t work. Call your ISP and ask if you’re behind CGNAT; some will assign you a dedicated IP for free or a small fee.

What is the best DNS for gaming to reduce ping?

For most gamers, 1.1.1.1 (Cloudflare) or 8.8.8.8 (Google) will outperform your ISP’s default DNS. Cloudflare’s 1.1.1.1 consistently benchmarks as the fastest DNS resolver globally with average response times under 15ms. Set it as your primary DNS on both your router and gaming device. For console-specific optimization, you can also try 8.8.4.4 as secondary alongside either option.

Ty Sutherland

With over a decade in game network and hardware optimization, Ty is a seasoned expert committed to enhancing your gaming experience. He's worked with industry leaders across platforms, from PC to mobile, advocating for accessible, cutting-edge optimization tools. At "Fix Game Lag," Ty keeps you updated on the latest gaming resources and solutions, leveling the playing field for all gamers.

Recent Posts