# Host a Valheim or Rust Server Behind CGNAT Without Port Forwarding

Run a Valheim or Rust server on your own PC and let friends join through CGNAT — with a ProxVN UDP tunnel, no port forwarding and no VPS rental.

Source: https://proxvn.io.vn/blog/host-valheim-rust-server-behind-cgnat

You want to run a Valheim or Rust server for your friends. Your server runs fine on your own PC — but nobody outside your home network can join. Your ISP put you behind CGNAT, so port forwarding on your router does nothing: there is no public IP address pointing at your house.

This is the exact problem tunnels were made for. Valheim and Rust are UDP games, and most free tunnel tools only handle TCP or HTTP — which is why this guide uses ProxVN, whose UDP tunnels can carry game traffic straight through CGNAT.

Step 1: Install and start your game server locally

Valheim (default UDP ports 2456–2458): install the Valheim Dedicated Server from Steam (Tools section in your Steam library), then start it:

./valheim_server.x86_64 -name "My World" -port 2456 -world "MyWorld" -password "secret123" -public 1

Rust (default UDP port 28015, plus 28016 for RCON): download the server via SteamCMD, then start it:

./RustDedicated -batchmode -nographics -server.port 28015 -server.level "Procedural Map" -server.seed 12345 -server.maxplayers 20 -server.hostname "My Rust Server"

First, confirm the server works on your own network: connect from another computer at home using your local IP (for example 192.168.1.10:2456 in Valheim, or connect 192.168.1.10:28015 in the Rust console). If it works locally, the game itself is fine — the only missing piece is a public address.

Step 2: Install ProxVN

ProxVN is a single static binary. On Linux or macOS:

curl -fsSL [https://proxvn.io.vn/install.sh](https://proxvn.io.vn/install.sh) | sh

On Windows, in PowerShell:

irm [https://proxvn.io.vn/install.ps1](https://proxvn.io.vn/install.ps1) | iex

No account is needed to try it.

Step 3: Expose the game port with a UDP tunnel

On the same machine that runs the game server, open a UDP tunnel for your game's port:

Valheim:

proxvn udp 2456

Rust:

proxvn udp 28015

ProxVN prints a public address. Share that address with your friends: Valheim players join with the address in the server browser, and Rust players type connect in the in-game console (F1). That's it — your friends are now playing on a server running on your own PC, with no router configuration and no VPS rental.

Step 4: Keep a stable address with a free account

The anonymous address changes every time you restart the tunnel, which means re-sending a new address to your friends each session. Create a free account and use a fixed subdomain so the address stays the same:

proxvn udp 2456 --subdomain my-valheim

A free account currently allows up to 10 tunnels and 3 fixed subdomains — enough for a Valheim world, a Rust server, and one spare.

Step 5: A few honest notes before game night

- Your PC is the server. It needs to stay on while friends play, and your upload speed decides how smooth the game feels. A home connection handles a small group of friends fine; it is not a data-center setup.
- Close the tunnel when you're done. Press Ctrl+C to stop ProxVN and the public address disappears with it.
- Use the game's own password. Set a server password in Valheim (-password) or in Rust so only your friends can join.
- Some ISPs throttle UDP. If the game feels laggy only through the tunnel, test at a different hour or check whether your ISP limits UDP traffic — the tunnel can't fix a throttled line, but it removes the CGNAT wall completely.

Why UDP matters here

Most free tunnels only forward HTTP or TCP. Valheim and Rust run on UDP, so an HTTP tunnel can't carry them at all — and TCP-only tools simply won't work for these games. That's also why this setup needs a tunnel that speaks UDP natively, not a workaround.

Try it now

Install ProxVN, run one command, and invite your friends tonight — free, no port forwarding, no VPS:

[https://proxvn.io.vn/](https://proxvn.io.vn/) — download at [https://proxvn.io.vn/download](https://proxvn.io.vn/download)

Your world, your rules, hosted on your own machine.
