CGNAT port forwarding

Port Forwarding Behind CGNAT: How to Open Ports With a VPN

You cannot port forward on your router behind CGNAT, because your ISP's gateway owns the public IPv4 address, not your router. The quickest workaround that needs no server of your own is a VPN with a port forwarding feature: your device keeps an outbound tunnel to the VPN server, and the provider forwards a port on the server's public IP down that tunnel to you. If you need a fixed port that you choose, such as 25565 for Minecraft or 32400 for Plex, use PureVPN with the Port Forwarding add-on. Not sure you are behind CGNAT? Run the CGNAT check first.

Some links on this page are affiliate links. If you buy through them, we may earn a commission at no extra cost to you. It does not change what we recommend: we list the limits of each service, including the ones that pay us.

Works behind CGNAT
Yes, the port opens on the VPN server
Router changes needed
None
Choose your own port
PureVPN (up to 15 ports)
Random port only
Proton VPN, PIA
Stable public address
Needs a dedicated IP
Test your forwarded port

Last updated:

Why port forwarding fails behind CGNAT

With carrier-grade NAT, your router gets an address from 100.64.0.0/10 instead of a public one, and the ISP translates many customers onto one shared public IPv4 address. A port forwarding rule on your router only covers the second NAT layer. Inbound connections stop at the ISP's gateway, which has no idea which customer should receive them, so the port forwarding test reports the port as closed or filtered no matter what you configure at home.

CGNAT is standard on Starlink, T-Mobile and Verizon 5G Home Internet, most mobile and fixed wireless connections, and many fiber and cable networks. Only the ISP can remove it.

How a VPN with port forwarding gets around CGNAT

A VPN connection is an outbound connection from your device, so CGNAT lets it through like any other traffic. When the provider supports port forwarding, it reserves a port on the VPN server's public IP address and sends every inbound connection on that port through the tunnel to your device. Players, apps and remote devices connect to the VPN server's IP and port, never to your home IP.

  • No router access needed: it works the same behind CGNAT, double NAT, a dorm network or a mobile hotspot.
  • No server to rent or maintain, unlike a VPS relay.
  • Visitors install nothing, unlike Tailscale or ZeroTier, where every client must join your network.
  • Your home IP stays hidden behind the VPN server's address.

Fixed port or random port: the detail that decides which VPN to use

VPN port forwarding comes in two flavors, and they suit different jobs.

With a fixed port, you pick the port number. That is what game servers, Plex, NAS apps, IP cameras and self-hosted services need, because clients expect a known port such as 25565, and many consoles and apps cannot be told to use a different one. PureVPN works this way: you enter the ports you want, up to 15 at a time, or open all ports.

With a random port, the VPN server picks the number and it can change when you reconnect. That is fine for torrent clients, which you simply update to the new port, but impractical for anything other people connect to. Proton VPN and Private Internet Access (PIA) work this way.

Which VPNs support port forwarding

If something has to accept connections on a specific port, PureVPN is the one on this list that lets you choose it. If you only want better torrent speeds, PIA or Proton VPN cover that without an add-on.

Port forwarding support in popular VPN services
VPNPort forwardingPort numberBest for
PureVPNYes, paid add-on; connect to a server that supports itYou choose (up to 15 ports, or all ports)Game servers, Plex, cameras, self-hosting behind CGNAT
Private Internet AccessYes, included; not on US server locationsRandom, assigned by the appTorrenting and seeding outside the US
Proton VPNYes, all paid plans; P2P servers onlyRandom, usually changes on reconnectTorrenting on Windows, macOS and Linux
NordVPNNot on standard plans—Privacy and streaming, not inbound connections
  • Best for a fixed port behind CGNAT

    PureVPN + Port Forwarding

    • Choose the exact ports to open, up to 15 at a time, or open all ports.
    • Configured from the member area, with no router settings to change.
    • Optional Dedicated IP + Port Forwarding bundle for an address that never changes.
    • 31-day money-back guarantee.
    Get PureVPN Port Forwarding
  • Best for torrenting

    Private Internet Access

    • Port forwarding included in the subscription.
    • The app assigns a random port; set it in your torrent client.
    • Not available on US server locations.
    Check PIA

Set up PureVPN port forwarding behind CGNAT

  1. 1

    Confirm you are behind CGNAT

    Run the CGNAT check. If your router's WAN IP is in 100.64.0.0/10 or does not match your public IP, router port forwarding will not work and a VPN is the right fix.

  2. 2

    Get PureVPN with the Port Forwarding add-on

    Add Port Forwarding to your plan at checkout on the PureVPN port forwarding page. If you will share the address with other people, consider the Dedicated IP + Port Forwarding bundle so the IP does not change.

  3. 3

    Choose the ports in the member area

    Sign in to the PureVPN Member Area, open Subscriptions, click Configure next to Port Forwarding, choose Enable specific ports, enter the ports your service uses (for example 25565), and click Apply Settings.

  4. 4

    Connect to a port-forwarding server

    Open the PureVPN app on the device that runs the service and connect to a server that supports port forwarding. Pick the location closest to you or your players to keep latency low.

  5. 5

    Let the service accept connections

    Make sure the server listens on all interfaces (0.0.0.0) and allow it through the firewall. On Windows: New-NetFirewallRule -DisplayName "Game server" -Direction Inbound -Protocol TCP -LocalPort 25565 -Action Allow.

  6. 6

    Test the port from outside

    With the VPN connected, open the open port checker. It shows the VPN's public IP; enter your port and run the check. If it reports open, share that IP and port with your players or apps.

Ports to forward for common uses

UDP ports cannot be tested with a TCP connection. Check them with the UDP port checker, or by joining the game from a phone on mobile data.

Ports commonly forwarded through a VPN behind CGNAT
ServicePortProtocol
Minecraft Java server25565TCP
Minecraft Bedrock server19132UDP
Plex Media Server remote access32400TCP
Jellyfin8096 (or 443 via a reverse proxy)TCP
Palworld dedicated server8211UDP
Valheim dedicated server2456–2457UDP
Home Assistant8123 (80 on new HA OS installs)TCP
SSH to a home server22 (or a custom port)TCP
Torrent clientAny port the VPN gives youTCP and UDP

Limits to know before you buy

  • The VPN must run on the device that hosts the service. Consoles and smart TVs cannot run VPN apps, so they need a router that runs the VPN connection.
  • Every connection travels through the VPN server, which adds latency. Choose a server near you and your players.
  • On a shared VPN IP, the address can change when you connect to a different server. A dedicated IP keeps it fixed.
  • Anything you forward is reachable from the whole internet. Keep the software updated and never expose admin panels with default passwords.
  • Port forwarding gives other people a way in to your service. It does not change your console's NAT type for matchmaking in games you do not host.

Other ways around CGNAT

If your ISP will give you a public IPv4 address, take it: it is free or cheap and removes the problem entirely. If it will not, a VPN with port forwarding is the simplest option for game servers and media servers that strangers need to reach.

Ways to accept inbound connections behind CGNAT
MethodWorks forEffortCatch
Ask the ISP for a public IPv4EverythingOne callNot offered by Starlink residential, many 5G and mobile plans
IPv6Everything over IPv6LowPlayers and apps need working IPv6 too
VPN with port forwardingGame servers, Plex, self-hosting, torrentsLowMonthly cost, extra latency
Tailscale or ZeroTierYour own devicesLowEvery client must install and join
Cloudflare TunnelWebsites and HTTP appsMediumNo arbitrary TCP or UDP game ports
VPS relay with frp or WireGuardEverythingHighYou rent and maintain a server

CGNAT port forwarding FAQ

Can you port forward with CGNAT?

Not on your router. The ISP's gateway owns the public IPv4 address and drops inbound connections. You need a public IP from the ISP, IPv6, a VPN with port forwarding, or a relay server.

Does a VPN bypass CGNAT?

Only if the VPN supports port forwarding. A regular VPN changes your outbound IP but blocks unsolicited inbound connections just like CGNAT does. With port forwarding, the provider opens a port on its public IP and forwards it to you.

Which VPN lets me choose the port number?

PureVPN's Port Forwarding add-on lets you enter the specific ports you want, up to 15 at a time. Proton VPN and PIA assign a random port, which works for torrent clients but not for game servers that need a known port.

Does NordVPN support port forwarding?

Not on its standard plans. NordVPN is a solid choice for privacy and streaming, but it cannot open an inbound port for a game server behind CGNAT.

Can I host a Minecraft server behind CGNAT?

Yes. Run the server on a PC with a VPN that supports fixed-port forwarding, open port 25565, and give players the VPN server's IP. Test it with the open port checker while the VPN is connected.

Does a VPN fix strict NAT on Xbox or PlayStation behind CGNAT?

Only if the console's traffic goes through the VPN, which requires a router that runs the VPN connection, and the provider forwards the ports the console uses. A VPN app on your PC does not change the console's NAT type.

Is VPN port forwarding safe?

It is as safe as the service you expose. The VPN hides your home IP, but anyone can reach the forwarded port, so keep the software updated, use strong passwords, and close ports you no longer use.

References