Project Zomboid help guide · Updated 2026-10-18

Friends can't join your Project Zomboid server?

Project Zomboid friends can't connect or stuck loading? Forward UDP 16261 and 16262, start the server with the .bat (not Steam), match builds and mods.

Quick answer

A Project Zomboid dedicated server needs UDP 16261 (DefaultPort) and UDP 16262 (UDPPort, the direct connection port) open on the router and firewall. Friends add your public IPv4 address and port 16261 under Join → Favorites. The usual causes of failed joins: the ports aren't forwarded (or were forwarded as TCP), the server was launched through Steam instead of its start script, players are on a different build (Build 41 vs 42) or mod list, or your ISP uses CGNAT.

Ports

  • 16261 UDP: DefaultPort in servertest.ini. Players connect here
  • 16262 UDP: UDPPort, direct connection port
  • 27015 TCP: RCONPort default. Only if you use RCON; keep it closed otherwise

How to fix it, step by step

  1. Start the server the right way. Install "Project Zomboid Dedicated Server" from Steam (Tools) or SteamCMD (app_update 380870 validate), but don't launch it through Steam. On Windows run StartServer64.bat; on Linux run start-server.sh. If you launched it through Steam, verify the server files.
  2. Fix the memory setting. StartServer64.bat asks for 16 GB by default. Change -Xms and -Xmx to what your PC has spare (for example -Xms6g -Xmx6g), or the server fails to start with memory errors.
  3. Forward UDP 16261 and 16262. Reserve the server PC's local IP, then forward UDP 16261 and 16262 to it, and allow both in the firewall (ufw allow 16261/udp and ufw allow 16262/udp on Linux). UPnP=true in servertest.ini can do this automatically on routers that support UPnP.
  4. Add the server by public IP. In Project Zomboid: Join → Favorites → enter your public IPv4 and port 16261, an account name and password, Save, then Join. Players on your network or a VPN use the local or VPN address.
  5. Match the build and mods. Everyone must be on the same build as the server. A Build 41 server needs the legacy41 branch (app_update 380870 -beta legacy41 validate) and players on that branch too. Put mod IDs in WorkshopItems= and Mods=; with DoLuaChecksum=true, players whose files differ get kicked.
  6. Check for CGNAT if outside joins still fail. If LAN works but friends outside time out with the ports forwarded, compare your router's WAN IP with your public IP. See the CGNAT guide.

Server not in the in-game browser

Public=false is the default in servertest.ini, which hides the server from the in-game browser. Set Public=true and a PublicName. Steam-enabled servers always show in Steam's own server browser. Joining through Favorites with the IP works either way.

Other things that block joins

  • Stuck on the loading screen joining your own server: the saved favourite must use your real public IPv4 and UDP 16261 must be forwarded. Close the server with quit, verify files, and restart it with the .bat file.
  • Open=false: only accounts an admin created can join.
  • GOG or non-Steam players: start a -nosteam server; every player must also run the game with -nosteam.
  • Edited servertest.ini while running: run reloadoptions to apply it.

Test it from the outside

Your own Wi-Fi can't tell you whether friends can reach the server. The free Server Doctor check contacts your server once from the internet, the way the game does, and tells you the most likely cause. The same check runs in Discord with /fix.

No PC to host 24/7?

Project Zomboid servers need several GB of RAM and the world only runs while your PC is on. If you're behind CGNAT, port forwarding can't work at all. A hosted Project Zomboid server has its own public IP and stays online.

Related guides

Sources: pzwiki.net/wiki/Dedicated_server · pzwiki.net/wiki/Server_settings

Still stuck? Get free help from real people in our Discord

Post your game, where it runs and what the check said in #help-forum. Other server hosts and the Server Doctor team can take a look. Free.

Join the Discord
FAQ

Project Zomboid questions, answered

What ports does a Project Zomboid server use?

UDP 16261 (DefaultPort) and UDP 16262 (UDPPort). Both need to be forwarded and allowed through the firewall.

Are Project Zomboid ports TCP or UDP?

UDP. Forward 16261 and 16262 as UDP.

How do friends join my Project Zomboid server?

Join → Favorites → your public IPv4 and port 16261, then Save and Join.

Why is my Project Zomboid server not showing in the server list?

Public=false is the default. Set Public=true in servertest.ini, or have friends add the server by IP in Favorites.

Can Build 41 and Build 42 players play together?

No. The server and every player need the same build. Use the legacy41 beta branch for a Build 41 server.

Server Doctor logo

Still stuck? Test it from the outside.

Enter the address your friends type. Server Doctor checks it from the internet and explains what's wrong. Free, no login.

Some hosting recommendations may use affiliate links, always disclosed. Learn more