Networking
How to Port-Forward a Game Server Through a VPN
Forward ARK and Palworld ports on a home router, deal with CGNAT, and use a VPN with a port cap — without turning the guide into a single-brand ad.
A dedicated server is only useful if other people can reach it. That almost always means opening a small number of UDP ports to the PC that is running the game. This guide covers the normal home-router path first, then what to do when your ISP will not give you a real public address, and how a VPN with port forwarding can fill that gap — including when the VPN only lets you open a limited number of ports.
It is written around ARK: Survival Ascended and Palworld, but the same ideas apply to most PC game servers.
What port forwarding actually does
Your home network shares one internet connection. Devices on it have private LAN addresses (often 192.168.x.x or 10.x.x.x). Friends on the internet cannot just “find” that PC. A port forward tells the router: when traffic arrives on this public port, send it to that PC, on that port.
Game servers usually need UDP, not TCP. Opening the wrong protocol is a classic reason a test “fails” even though a rule exists.
You only need to forward ports that players (or a server browser) actually use. Admin ports such as RCON should stay closed unless you have a specific reason to open them.
Start with a reserved LAN address
Before you touch forwards, give the server PC a stable local IP. In the router, reserve the address in DHCP (sometimes called a DHCP reservation or address reservation) so the PC keeps the same LAN IP after a reboot. If that address changes, every forward you just made points at the wrong machine.
You can also set a static address on the PC itself, but a reservation on the router is usually less brittle.
The plain router path
- Look up the server’s listening port in the game guide or the start script.
- On the router, add a port-forward rule: protocol UDP, external port = game port, internal port = the same number, internal IP = the reserved LAN address.
- Allow the same UDP port in Windows Firewall on the server PC (inbound).
- Test from outside the house.
A second computer on the same Wi-Fi is a weak test. It can succeed even when nothing is reachable from the internet. Use a phone on cellular data (not on the home Wi-Fi), or have a friend try to join.
If the join works on the LAN and fails from cellular, the problem is almost always the forward, the firewall, the wrong public IP, or CGNAT — not the game install.
Ports worth budgeting for ARK and Palworld
You do not have to open every port a wiki lists on day one. Start with the ones players actually connect to.
| Server | Required for players | Often useful | Only if you use it |
|---|---|---|---|
| ARK: Survival Ascended | UDP 7777 (or the -port= you set) |
UDP 27015 if you want Steam / browser discovery | TCP 27020 for RCON |
| Palworld | UDP 8211 (or the -port= you set) |
— | RCON or REST API ports, only if enabled in settings |
The official ARK wiki also mentions UDP 7778 (game port + 1) as a peer port. For a first home server, get UDP 7777 working, then add 27015 if the server is hard to find in a list but open IP:7777 already works. Palworld’s official requirement is the single game port.
A second ARK map needs another game port (for example 7779) and, if you use them, its own query and RCON ports. Two Palworld instances need two different -port= values as well.
If you are also running both games on one PC, write the list down before you start buying extra forwards or fighting a VPN’s port cap.
When a normal forward will not work
The usual blockers:
CGNAT. Some ISPs put many customers behind a shared public address. Your router’s WAN / internet IP will look private (often in 100.64.0.0/10, or sometimes a normal private range), and a forward on your router never reaches the public internet. If you cannot get a public IPv4 address from the ISP, you need a different path: a VPN that supports incoming port forwards, a tunnel, IPv6 if your friends can use it, or a rented host.
No router access. Apartments, dorms, and some ISP gateways will not let you add forwards.
A double NAT. A mesh system or a second router behind the ISP’s modem can mean you have to forward on both, or put one device in passthrough / bridge mode.
Carrier-grade IPv6 only. IPv6 can work, but only if the server is listening, the firewall allows it, and the people joining can reach IPv6. Do not assume they can.
Using a VPN to publish the server
A VPN with incoming port forwarding gives the server PC (or the VPN account) a public address that is not your home ISP address, and lets you map a small number of ports to the machine. People use this when:
- the ISP is on CGNAT or will not allow forwards
- they would rather not publish their home IP
- the home IP changes often and the VPN address is easier to hand out
Most consumer VPNs do not support this. A regular “privacy VPN” is built to hide outbound traffic, not to accept inbound game traffic. You need a provider that documents port forwarding for incoming connections, and you should read that documentation before you pay a year in advance.
Some of those plans also cap how many ports you can open. A common example is a 15-port limit (PureVPN’s published forwarding cap is one such case). That is plenty for one Palworld server and one ARK map, and tight if you also want query ports, RCON, a second ARK map, and a second game. Budget the required game ports first. Leave RCON and extra query ports off the VPN until you know you need them.
The general setup, which is the same idea at most providers:
- Install the VPN app on the server PC and sign in.
- Connect to a region that supports port forwarding, using a protocol the provider’s forwarding docs allow.
- In the provider’s dashboard, request or enable forwarding and map each public port to the local port the game is listening on. Keep them the same number unless you have a reason not to.
- Confirm Windows Firewall still allows those UDP ports inbound.
- Give friends the VPN’s public IP and the game port, not your ISP address.
- If you list a Palworld community server, set
-publicip(and-publicportif needed) to that VPN address so the list does not advertise the wrong endpoint.
Split tunneling is the easy way to get this wrong. If the game server’s traffic goes out your regular ISP while you advertised the VPN IP, friends will not connect. Either send the whole PC through the VPN, or carefully include the server executables in the tunnel and then verify the public IP that the server is actually using.
A VPN kill switch can also drop the server the moment the VPN blips. If you use one, decide whether you want the server to stop (safer, nobody joins a suddenly exposed ISP IP) or to keep running (more uptime, different risk). For a password-protected home server, many people prefer “stay down until the VPN is back.”
A simple port plan you can copy
For a first home setup, this is enough:
- Palworld: UDP 8211 only.
- One ARK map: UDP 7777, plus UDP 27015 only if browser discovery needs it.
- Do not forward RCON, REST API, or Windows remote-desktop ports.
- If you are on a 15-port (or similarly tight) VPN cap, write the next few ports down before you add a second ARK map. A second map is another game port, and maybe another query port.
Then work through the game-specific guides so the listening ports in the start scripts match the forwards: ARK on Windows and Palworld on Windows.
If you would rather not fight the network
Port forwarding is the usual sticking point for a home server: CGNAT, a gateway you cannot configure, or a port cap that does not fit a cluster. In those cases a rented host is not a failure. It is often cheaper than a new ISP plan, and someone else handles the public address.