Port Forwarding Explained: What It Is and When You Need It

Karolina Assi

December 3, 2026

Port Forwarding Explained: What It Is and When You Need It
💡
TL;DR: Port forwarding tells your router which device should get incoming connections on a specific port. You need it to host things, like a game server, Plex or a torrent client that seeds, not to browse or stream. If your forward refuses to work, your ISP's CGNAT is a likely culprit, and VPN port forwarding gets around it without exposing your home IP.

A game, a media server or a torrent client just told you to "forward port 25565," and you have no idea what that means. Good news: it's a router setting, not a hacking skill, and most people can set it up in a few minutes.

Port forwarding is how you let the outside world reach one specific device on your home network. The tricky parts are knowing when you actually need it, keeping it safe, and figuring out why it sometimes does absolutely nothing. That last one usually comes down to CGNAT.

What’s that, you ask? Let’s explain. 

What Is Port Forwarding?

Port forwarding is a router rule that sends incoming internet traffic on a specific port to a specific device on your local network. Without the rule, your router drops connections nobody inside asked for. With it, a game server, media server or camera at home can accept connections from outside.

Ports are numbered channels, from 0 to 65,535, that let one device run lots of internet services at once. Your public IP address gets data to your building; the port number gets it to the right apartment.

Think of your router as a front desk that turns away every visitor nobody's expecting. Port forwarding is the sticky note that says, "Anyone asking for apartment 25565, send them straight up to the PC in the bedroom."

what is port forwarding

How Port Forwarding Works

Your router uses something called NAT (Network Address Translation) to share one public IP address with every device in your home. Each device gets a private address, like 192.168.1.20, that only exists inside your network.

When you open a website, your router remembers the request and passes the reply back to the right device. Incoming connections that nobody asked for are a different story. The router has no idea which device they're meant for, so it drops them. That's great for security and terrible if you're trying to host a game.

A port forwarding rule fills in the blank. It says: traffic arriving on external port X goes to internal IP Y, port Z. If you host a Minecraft server, for example, you'd forward port 25565, the default Minecraft server port, to the computer running it.

Two things keep a rule working:

  • Give the device a fixed local IP. Most routers call this a DHCP reservation. Without it, your PC might get a new address next week, and the rule will point at an empty room.
  • Test from outside. A port checker like canyouseeme.org tells you whether the port is actually reachable from the internet. Test while the app is running, or the port will look closed even if the rule is fine.

What Port Forwarding Is For (and When You Don't Need It)

Port forwarding is for hosting: anything where someone on the internet has to start a connection to a device in your home. If you're only reaching out to services elsewhere, you don't need it.

When you need port forwarding

  • Hosting a game server. Minecraft, Valheim, Rust and friends need a forwarded port so other players can join your world.
  • Streaming your media library from anywhere. Plex uses port 32400, and Plex's remote access guide walks through forwarding it when automatic setup fails.
  • Seeding torrents properly. A forwarded port makes your client connectable, so more peers can reach you. Just know the legal side of torrenting before you go wild.
  • Reaching cameras, a NAS or a home server. Anything you want to check on while you're out.
  • Remote desktop. Logging into your home PC from work, though a VPN for remote work is often the safer route.

When you don't need it

Browsing, streaming Netflix, video calls and joining someone else's online match all work without port forwarding, because your device starts those connections. If your console ever warns that it can't connect to other players properly, a port forward can usually fix it. 

But if you're just playing online, a gaming VPN or a closer server will do more for you than opening ports. And no, forwarding won't lower your ping by itself.

Port Forwarding vs Port Triggering vs DMZ vs UPnP

All four let incoming traffic through your router, just in different ways.

Method What it opens When it's open Who sets it up Risk
Port forwarding One port (or range) to one device Always You, in the router Low, if the app behind it is updated
Port triggering A port, after an outgoing trigger Only while the app is active You, in the router Low
DMZ Every port to one device Always You, in the router High
UPnP Whatever apps ask for Whenever an app requests it Apps, automatically Medium

Port triggering is a port forward that turns itself on and off. When your game or app reaches out to the internet, the router notices and opens the door for incoming traffic, then shuts it again when you're done. It's tidy, but only one device can use it at a time, and it doesn't work for things like game servers that need to let visitors in before they've said anything themselves.

DMZ (short for "demilitarized zone," a name borrowed from the military) takes one device completely out from behind your router's protection, so anything on the internet can knock on any of its doors. It's the "I give up" button, so use specific forwards instead whenever you can.

UPnP (Universal Plug and Play) lets apps and consoles open ports themselves. It's convenient, and it's also how malware on one device can quietly open doors for itself. Leave it on if you value convenience; turn it off if you'd rather approve every door yourself.

Is Port Forwarding Safe?

Port forwarding is as safe as whatever sits behind the open port. The rule itself doesn't hand anyone your network; it lets strangers knock on one specific door. If the app answering that door is up to date and password-protected, you're fine. If it's an old camera with a default password, you've basically put a welcome mat out for bots.

To keep your open ports safe:

  • Forward only the ports an app actually needs, to the device that needs them.
  • Keep that software and your router firmware updated.
  • Delete rules for things you no longer host.
  • Avoid DMZ unless you know exactly why you need it.
  • Turn off router features you don't use.

A port forward also doesn't switch off your device's own firewall. You may need to allow the app there too.

Why Port Forwarding Isn't Working: CGNAT

You set up the rule perfectly, you tested it, and the port still says closed. Before you throw the router out the window, check for CGNAT (carrier-grade NAT). It's one of the most common reasons port forwarding does absolutely nothing.

Remember how your router shares one public address with every device in your home? With CGNAT, your internet provider pulls the same trick one level up: it puts you and a bunch of your neighbors behind one shared address. Providers do it because the old-style internet addresses ran out years ago, and they're stretching what's left.

Back to the apartment building. Your router is the front desk, and your port forward is the sticky note telling it where to send visitors. With CGNAT, your building sits inside a gated community, and the guard at the gate has never heard of you. Visitors get turned away at the gate, long before they reach your front desk or your sticky note. And you can't leave a note for the guard, because the gate belongs to your provider.

port forwarding explained: why your port forward isn't working behind CGNAT

To find out whether you're stuck behind the gate:

  1. Log into your router and find the address it calls "WAN IP" or "internet IP."
  2. Look up your public IP on our what is my IP page.
  3. Compare the two. If they're different, or the router's address starts with anything from 100.64 to 100.127 (a range reserved for CGNAT), you're behind CGNAT.

If you are, you have three ways out:

  • Ask your provider for a public IP. Many will give you one, sometimes free, sometimes for a small fee. It never hurts to ask nicely.
  • Use IPv6, if your provider and your app support it. It's the newer kind of internet address, and there are enough of them that nobody has to share.
  • Forward the port through a VPN instead. Visitors come to the VPN server's gate, where the guard does know you, and get sent straight down your tunnel.

Port Forwarding With a VPN

A regular VPN blocks incoming connections, because many users share each server's IP and the server has no idea which of them a stranger wants. VPN port forwarding solves that by reserving a port on the VPN server just for you, so traffic sent to that port comes down your tunnel to your device.

It's also the cleanest fix for CGNAT. The incoming connection lands on our server, not your ISP's equipment, so it doesn't matter how many layers of NAT sit in front of your home. And people connecting to your server see our IP, not your home address.

We offer two kinds of VPN port forwarding:

  • Ephemeral Port Forwarding is included with Pro. You request a port in your account and connect to any of our locations, and the port is yours for seven days.
  • Permanent Port Forwarding comes with a Static IP. Your ports stay reserved for as long as the static IP is active, on any port above 1024.

Port Forwarding isn't available on our free plan. If you're running a server around the clock, put the VPN on your router with our Config Generators, or use Split Tunneling so only the server app goes through the tunnel.

Every Port Forwarding Guide

The steps depend on what you're forwarding for. Here's where to go next.

  • Routers: portforward.com has screenshots for nearly every router model. Look for "Port Forwarding," "NAT" or "Virtual Server" in your router's settings.
  • Minecraft: the Minecraft wiki's server setup tutorial covers port 25565 and the server files. To play without exposing your home IP, use a Minecraft VPN.
  • Steam and other PC games: check each game's support page for its ports, and use a Steam VPN if your ISP throttles downloads.
  • Torrent clients: the qBittorrent wiki explains where to set your listening port.
  • Plex and media servers: Plex remote access covers manual port setup.
  • Behind CGNAT or on a VPN: use ephemeral port forwarding for a quick setup or a static IP for a permanent one.

The Bottom Line

Port forwarding is a sticky note on your router telling it where to send incoming connections. You need it to host something, not to use the internet, and it's safe as long as the thing behind the open port is kept up to date.

If your rule refuses to work, check for CGNAT before you blame yourself. Rather skip the router menus entirely? Our VPN port forwarding gets visitors to you through any of our locations, and keeps your home IP private while it's at it. Your router will never know what it's missing.

Get Windscribe For Free

Frequently Asked Questions

Does port forwarding affect other devices or bypass your firewall?

No. A port forwarding rule sends traffic on one port to one device, and every other device on your network stays behind the router as before. It does open a path through your router's firewall for that port, so the device receiving it needs to be secure. Your computer's own firewall still applies, and you may need to allow the app there too.

Does port forwarding make your internet faster (or lower ping)?

No. Port forwarding doesn't add bandwidth or shorten the distance your data travels. It can make connections possible that were failing before, like other players joining your lobby or more torrent peers reaching you. That can feel faster, but your speed and ping stay the same.

Do I need port forwarding for gaming?

Only if you're hosting. Joining online matches works fine without it, because your console or PC starts the connection. If you host a server, or your console reports a strict NAT type, forwarding the game's ports or enabling UPnP can fix it.

Is it safe to leave ports open?

It's safe as long as the software behind the port is updated and protected with a strong password. The risk comes from outdated or forgotten devices, like an old camera still using its default login. Close rules for anything you no longer use, and avoid DMZ.

Can you port forward with a VPN?

Yes, if your VPN supports it. With our Pro plan, you can request an ephemeral port that works on any of our servers for seven days, or add a static IP for permanent forwarding on ports above 1024. It's also a reliable workaround when your ISP uses CGNAT.

Keep your browsing private and secure by masking your IP address.
Get Windscribe