How to Host a Game Server Without Port Forwarding (5 Ways)
How to host a game server without port forwarding: UPnP, tunnels, virtual LAN apps, in game invite codes and hosted servers, with pros and cons of each.
Updated Sep 30, 2026 · 6 min read
On this page
You can host a game server without port forwarding in five main ways: let the game or router open the port with UPnP, use a tunnel service that gives your server a public address, put everyone on a virtual LAN app, use the game's own invite code system, or run the server with a host whose ports are already open. Which one works depends on your game and your internet connection, especially if you are behind CGNAT, where port forwarding is impossible anyway.
Short answer
| Method | Cost | Works behind CGNAT | Friends install anything | Best for |
|---|---|---|---|---|
| UPnP | Free | No | No | Routers that support it, quick tests |
| Tunnel service | Free tier or small fee | Yes | No | Minecraft and other TCP or UDP servers at home |
| Virtual LAN app | Free tier | Yes | Yes, every player | Small groups who trust each other |
| In game invite codes | Free | Usually | No | Games with built in relay, co-op only |
| Hosted server | Monthly fee | Not relevant | No | A world that stays online, no networking at all |
Why port forwarding is needed in the first place
Your router shares one public IP address between every device in your house. When a friend connects to that address, the router does not know which device should get the traffic, so it drops it. Port forwarding is a rule that says "send traffic on this port to this PC". Our port forwarding guide explains it fully and lists the ports for every game.
People look for alternatives because:
- They cannot log in to the router, for example in a dorm, a shared flat or with a locked ISP router.
- Their connection is behind CGNAT, so the router does not have a public IP of its own. Compare the WAN IP on your router with the address from a "what is my IP" search. If they differ, or the WAN IP starts with
100.64.to100.127., port forwarding cannot work. - They do not want their home IP shared with everyone who joins.
Way 1: UPnP
Universal Plug and Play lets a program ask the router to open a port automatically. Some games and server programs try this on startup.
How: turn on UPnP in your router settings (often under Advanced or NAT), then start the server. If the game supports UPnP, the port opens by itself.
Downsides: it does not work behind CGNAT, many routers ship with it off for security reasons, and it can fail silently. Treat it as a quick fix, not a plan.
Way 2: a tunnel service
A tunnel service runs a small program next to your server. The program connects out to the service, and the service gives you a public address that friends use. Traffic goes from your friends to the tunnel provider, then down the tunnel to your PC. Because the connection starts from your side, no port needs to be opened and CGNAT does not matter.
How it usually works:
- Create an account with a tunnel provider that supports game traffic. playit.gg is a popular one made for game servers.
- Download and run their agent on the PC running your server.
- Create a tunnel for your game's port and protocol, for example
25565TCP for Minecraft or2456to2457UDP for Valheim. - Send friends the address the service gives you.
Downsides: traffic takes a detour through the provider, which can add ping, especially if their nearest relay is far away. Free tiers may have limits on bandwidth, ports or UDP. Your PC still has to stay on, and upload speed still limits the group.
For Minecraft Java specifically, there are also mods such as e4mc and Essential that share a single player world over their own relay without port forwarding. They only work while you are playing.
Way 3: a virtual LAN app
Virtual LAN apps put everyone's PCs on a private network that behaves like they are all in the same house. Tailscale and ZeroTier are common modern choices, and older ones like Radmin VPN are still used for gaming.
How:
- Every player installs the same app and joins your network.
- You run the server as normal.
- Friends connect using your PC's address on the virtual network instead of your public IP.
Downsides: every single player has to install and run the app, which gets harder with each new friend. Some games do not find servers on virtual adapters without typing the IP directly. Everyone on the network can reach your PC, so only use it with people you trust.
Way 4: use the game's own invite system
Many modern games route co-op sessions through a relay run by the developer or the store platform, so nobody needs to open ports.
- Valheim: the crossplay option when starting a world gives a join code and relays the connection.
- Palworld: co-op worlds share an invite code, up to 4 players.
- Steam friend invites: games like Enshrouded and Dragonwilds let friends join a hosted world from the Steam friends list.
Downsides: these are co-op sessions, so the world goes offline when the host stops playing, player caps are lower, and the host's PC does all the work.
Way 5: a hosted server (nothing to forward)
A hosted server lives in a data center with its own public address and the game's ports already open. There is no router, no CGNAT problem, no firewall prompt and no tunnel in the way.
On GamezServers you pick a game and plan, pay, and the server is live in about 60 seconds. The address shows on your dashboard. You copy it, paste it into the game, and send it to friends. Your home IP is never shared, and the world stays online when you log off because it does not run on your PC.
If cost is the worry, you can choose Split with friends at checkout so each person pays their own share. A 9.99 USD Minecraft server split 4 ways is about 3.50 USD each. See game server hosting you can split with friends.
Which way should you pick?
- You just want to play tonight with one or two friends: use the game's invite code or co-op hosting.
- You want a home server and you are behind CGNAT: a tunnel service is the most practical option.
- Small trusted group, happy to install an app: a virtual LAN app works well.
- You want the world online around the clock with no networking at all: a hosted server. See how to keep a game server online 24/7 without your PC.
FAQ
Can I host a Minecraft server without port forwarding?
Yes. Use a tunnel service like playit.gg on your PC, a virtual LAN app that every player installs, a mod like e4mc for sharing a single player world, or a hosted server where the port is already open.
Is UPnP safe to turn on?
It is convenient, but any program on your network can use it to open ports, which is why many people keep it off. A tunnel or a hosted server avoids the question.
Why can my friends not join even after port forwarding?
The most common causes are the wrong protocol (TCP instead of UDP), a firewall on the server PC, a changed local IP, double NAT or CGNAT. The port forwarding guide has a full checklist.
Does a tunnel add lag?
It can. Traffic goes through the provider's relay before reaching you, so ping depends on how close that relay is to you and your friends.
Skip the networking
If you would rather never think about routers again, browse the games page and pick a plan. The server has its own address and open ports from the moment it goes live, and your panel is covered in the control panel docs.
Want a server without the setup?
Pick a game, pay, play. Your address and login appear the moment checkout finishes.