Project Zomboid Dedicated Server: Setup, Ports, RAM and Updates (Build 42)
How a Project Zomboid dedicated server works in Build 42.21: first boot, the two UDP ports, memory, updates and branches, wipes, backups and self-hosting.
Don't have a server yet? Project Zomboid server hosting
A Project Zomboid dedicated server is a separate, free Steam tool, Project Zomboid Dedicated Server (app 380870). It runs the world on its own so it stays up when everyone logs off, and players join it with the normal game. It needs two UDP ports (16261 and 16262 by default), it reads its rules from files named after the server, and it has to be on the same branch as every player who joins. On a GameServerKings server the install is already done. Press Start, wait for *** SERVER STARTED **** in the console, and connect.
Versions as of 28 October 2026
The default (public) branch is Build 42.21, released as stable on 28 September 2026.
legacy41is Build 41.78.21. Apre-releasebranch carries 42.22 for testing. It replaced the old Unstable branch on 27 October 2026. A client on one branch can't join a server on another. Project Zomboid multiplayer explains how to match them.
First Boot on Your GameServerKings Server
Open your Project Zomboid server in the panel and check the Startup tab first:
Startup field Default What it does Server Name PterodactylPassed as -servername. Your config files, your save folder and the account database are all named after itAdmin Username / Admin Password admin/ set at creationThe built-in admin account. They are passed as -adminusernameand-adminpassword, so the console never asks for a passwordSteamPort 16262The second UDP port, passed as -udpport. It has its own allocationSteam Beta Branch empty (public) legacy41orpre-release. Changing it needs a reinstallSteam Auto Update 01makes the server run a SteamCMD update every time it startsClick Start. The game files were installed when the server was created (about 7 GB on disk for 42.21), so the first start only builds the world and the config files.
When the console prints
*** SERVER STARTED ****, the server is ready. The panel uses the same line to mark the server as running.In Project Zomboid, open Join, add the server's IP and port from the Address at the top of the panel, and enter a username and password. On an open server (
Open=true, the default), the first join with a new name creates that account with the password you type, so remember it.
Admin access, and how to promote your own account, is covered in Project Zomboid admin commands.
Pick the Server Name before you build anything
Rename the server later and the game looks for
<new name>.ini,<new name>_SandboxVars.luaand a save folder with the new name. It finds none of them and starts a new world at default settings. Nothing is deleted. The old files are still there under the old name, but it looks like a wipe. Project Zomboid server settings and config files covers the four config files.
Ports
| Port | Protocol | Server setting | Command-line flag | On GSK |
|---|---|---|---|---|
| Game port (default 16261) | UDP | DefaultPort |
-port |
The port in the panel's Address. Players connect to this one |
| Second port (default 16262) | UDP | UDPPort |
-udpport |
The SteamPort startup field, with its own allocation |
The values on the command line win. The game loads DefaultPort and UDPPort from the .ini and then replaces them with -port and -udpport, which our servers always pass. Editing those two lines in the .ini therefore changes nothing on a GSK server. Leave them alone and read the real values off the panel.
You don't need to open ports or forward anything for a hosted server. If players still can't get in, Project Zomboid "Connection Failed" and Error 4 goes through every reason the game gives.
Memory (RAM)
The Linux server's Java heap is set in ProjectZomboid64.json in the server's root folder. Build 42.21 ships it with -Xmx8g, an 8 GB heap ceiling. Our servers start the ProjectZomboid64 launcher directly, so that file is what applies. The startup line doesn't add its own -Xmx.
- To change the ceiling, edit the
-Xmxvalue inProjectZomboid64.jsonand restart. Keep it below your plan's memory, because the operating system and Java need room above the heap. - A reinstall runs SteamCMD with
validate, which can put the stock file back. Check the value again after a reinstall. - The Indie Stone doesn't publish a RAM-per-player figure. Memory use grows with the size of the explored map, the zombie population and your mods, not just with player count. If the server slows down as the world gets older, look at memory before you look at anything else.
Updates and Branches
Steam Auto Update is 0 by default, so the server doesn't update when it starts. That's deliberate: an update that players haven't received yet locks everyone out with a version mismatch. To update:
- Set Steam Auto Update to
1and restart. The container then runsapp_update 380870(plus-beta <branch>if you set one) before the game starts, on every start while it stays at1. Set it back to0afterwards if you only wanted one update. - Or reinstall. This runs the install script again (
app_update 380870 … validate) on the branch in Steam Beta Branch. Back up first.
BackupsOnVersionChange (on by default) makes the game zip the world when the game version changes, which is a useful safety net here. Mods are a separate update path, covered in Project Zomboid "File doesn't match the one on the server".
Wipe / Reset
To wipe the world, stop the server and delete the save folder:
.cache/Saves/Multiplayer/<Server Name>/ The next start generates a fresh world with the settings in .cache/Server/. To reset characters but keep the map, bases and loot, stop the server and delete only players.db inside that folder. That file holds the players' characters (the networkPlayers table). Player accounts and their roles are a separate database, .cache/db/<Server Name>.db. Leave it in place and admins stay admins.
Backups
The game makes its own zip backups, separate from the panel's Backups tab:
Setting (in <Server Name>.ini) |
Default | Effect |
|---|---|---|
BackupsOnStart |
true |
Zip on every start, into .cache/backups/startup/ |
BackupsOnVersionChange |
true |
Zip when the game version changes, into .cache/backups/version/ |
BackupsPeriod |
0 |
Minutes between timed backups, into .cache/backups/period/. 0 turns them off |
BackupsCount |
5 |
How many zips to keep of each kind (1 to 300) |
Each zip holds the world save and the server's config folder, so it's a complete restore point. Those zips sit on the same server, though, so keep panel backups as well (How to create a backup). Where everything lives, and how to move a world on or off the server, is in Project Zomboid Save Location: PC and Server Saves, and How Saving Works.
Run a Dedicated Server Yourself
If you want to host it on your own machine:
- Install with SteamCMD. No game licence or Steam login is needed (anonymous works):
Addsteamcmd +force_install_dir ~/pzserver +login anonymous +app_update 380870 validate +quit-beta legacy41after380870for Build 41. - Open UDP 16261 and 16262 in your firewall and router. Each further server on the same machine needs its own pair.
- Start it. On Linux run
./start-server.sh(Windows:StartServer64.bat). Add-servername <name>to name the server. Without it, the files are calledservertest. - Set the admin password. On the first start the console asks
Enter new administrator password:. You can skip the prompt with-adminusernameand-adminpassword(admin commands has the details). - Find your files in the
Zomboidfolder in your home directory (%UserProfile%\Zomboidon Windows). Config is inZomboid/Server/and the world is inZomboid/Saves/Multiplayer/<name>/.-cachedir=<path>moves the whole folder, and that's how our servers keep everything in.cacheinside the server directory.
On Windows, memory is set with -Xms and -Xmx inside StartServer64.bat. The pzwiki dedicated server page warns that the batch file's default is large and has to be lowered to fit your machine.
Common Issues
- Server stuck loading: usually a mod that is broken or incompatible with the current build, or a damaged save. Clear the
Mods=andWorkshopItems=lines in a copy of the.inito test without mods. - "Exiting due to errors loading … _SandboxVars.lua": the sandbox file has a Lua syntax error and the server quits instead of using defaults. Fix the file or restore it from a backup.
- "Connection lost": check
PingLimit. Players whose ping goes above it are kicked. If players get false-positive disconnects, raise it, or set it to0to turn the check off (the game's default). - "Connection Failed" when joining: the line under the message names the reason. Project Zomboid "Connection Failed" and Error 4: Every Reason and Fix has the fix for each one, including error 4.
- "File doesn't match the one on the server": a mod version mismatch. See the mod mismatch fix.
- High CPU: try a lower zombie population first.
Zombiesin the sandbox file goes from1(Insane) to6(None), and4is Normal.
FAQ
Is the Project Zomboid dedicated server free?
Yes. App 380870 is a free Steam tool, and SteamCMD downloads it with an anonymous login, so you don't need a second copy of the game. Players still need their own copy of Project Zomboid to join.
What ports does a Project Zomboid server use?
Two UDP ports: the game port (DefaultPort, 16261 by default) and the second UDP port (UDPPort, 16262). On our servers, the game port is in the panel's Address and the second port is the SteamPort startup field.
How much RAM does a Project Zomboid server need?
There is no official figure. Build 42.21's Linux launcher is set to an 8 GB Java heap ceiling (-Xmx8g in ProjectZomboid64.json), and actual use grows with the explored map, zombie count and mods.
Can I run a Build 41 server?
Yes. Set Steam Beta Branch to legacy41 and reinstall, then have every player switch Project Zomboid to the same branch in Steam (right-click the game > Properties > Betas). Start a fresh world for it rather than carrying over a Build 42 save.
Where are the server's files?
Everything is under .cache/ in the server's File Manager: config in .cache/Server/, the world in .cache/Saves/Multiplayer/<Server Name>/, accounts in .cache/db/, and the game's own backups in .cache/backups/.
What to Read Next
- Project Zomboid Server Settings and Config Files: the
.iniand the sandbox file - Project Zomboid Admin Commands: Full List & Access Levels: becoming admin and moderating
- Project Zomboid Save Location: PC and Server Saves, and How Saving Works: saves on PC and server, and moving a world across
- How to install mods for Project Zomboid
- Project Zomboid Multiplayer: How to Play With Friends: hosting options and branch matching
- Project Zomboid "Connection Failed" and Error 4: Every Reason and Fix
- Do Zombies Respawn in Project Zomboid? Server Settings

Need a Project Zomboid server?
Deploy an instantly-provisioned Project Zomboid server on high-clock hardware. DDoS protected, no contracts, cancel anytime.
From $12.00 /month