Project Zomboid dedicated server (Build 42): how to set one up
The short answer. A Build 42 dedicated server takes four things: the free server files (Steam app 380870, "Project Zomboid Dedicated Server", downloaded anonymously with SteamCMD — Build 42 is on the default branch, so there is no -beta option to pick), the game ports 16261 and 16262 over UDP open to your players, an admin password that you set the first time it runs, and enough RAM: 8 GB for a small group, 16 GB for a large one or a long mod list. Everyone, server included, must run the same version: 42.22.2 has been the stable build since 9 November 2026 (checked on 12 November 2026). Mods need two lists, WorkshopItems= and Mods=, and Build 41 saves and mods do not carry over. Players join from the game's menu: Play, Join, Add server.
In this guide
You can do all of that yourself on a machine you keep running (next section), or let us run it: pick the RAM and a preset, and the server starts with a stable address and no port to open, billed only for the hours it actually runs.
Hosting it yourself: the essentials
Sections 1 to 9 below describe the managed route. If you run the machine yourself, here is the order:
Install the server files with SteamCMD and an anonymous login, no game ownership needed:
steamcmd +login anonymous +force_install_dir <folder> +app_update 380870 validate +quitThere is no
-betaflag: Build 42 is the default branch. Adding-beta legacy41installs Build 41 instead, but its saves and its mods do not load on Build 42.Start it once with
start-server.sh(Linux) orStartServer64.bat(Windows). The console asks you to choose the admin password.Edit the settings in
Zomboid/Server/:servertest.iniholds the server options andservertest_SandboxVars.luathe sandbox variables (zombie density, season length…) when the server uses the default nameservertest.Open the ports
16261and16262, both over UDP, on the machine's firewall and on your router.Give it memory: the Java heap is capped by
-Xmxin the start script, and Build 42 needs more than Build 41 (see §6).Keep versions aligned: the game compares the client and server versions character by character, so a player on another build is turned away — the 42.22 update note shows what to do.
Add mods with the same two lists as in §4, written by hand in
servertest.ini.
Checked on 12 November 2026 against the PZwiki dedicated-server page and Steam's branch list for the server app.
1. Create the server
Pick Project Zomboid, the amount of RAM and the sandbox preset. The server starts on its own, and you get a stable connection address to share with your group.
2. The sandbox preset
Apocalypse is the default — the hardest one, the classic campaign settings. The others available: Survivor, Survival, Builder, FirstWeek, SixMonthsLater and Beginner.
⚠️ The preset is chosen at creation and cannot be changed afterwards: it defines the world itself. To try another one, create a second server.
3. Join the game
In game: Play → Join → Add server, then paste the address and password shown in your console.
There are no ports to forward: the game ports (16261 and 16262 over UDP) and the Steam ports (8766 and 8767) are already handled. Older tutorials asking you to open a whole range, one port per player, predate 41.65 — that requirement is long gone.
4. Mods, without the usual trap
A Project Zomboid server needs two different lists, and mixing them up is the number one reason a server refuses to start:
WorkshopItems=— the Steam IDs of the mods (the numbers you see in the Workshop URL);Mods=— the internal IDs, written inside each mod'smod.infofile, which have nothing to do with the ones above.
Here, you only fill in the first list. On the first start the server downloads the mods, we read the downloaded mod.info files, derive the internal IDs and restart the server with the right configuration. If nothing could be downloaded, we refuse to start rather than quietly booting a vanilla world — that is the kind of surprise you discover three evenings later.
⚠️ Build 41 mods do not work on Build 42: the modding system was rebuilt and every mod has to be ported by its author.
One more thing the two lists hide: a mod can depend on other mods, declared on the require= line of its mod.info. In the game's code (we read build 42.21), a mod loads only if every dependency is on the disk too, even one that is not in Mods= — so add the dependency's Steam ID to the first list as well. When one is missing, the log blames the mod you asked for, not the absent dependency: required mod "CleanUI" not found actually meant that its framework, NeatUI Framework, was missing.
5. The settings, and when they take effect
The sandbox preset (§2) is the only setting locked at creation. The others can be changed from the console, and take effect on the next start: they are injected into the machine at boot, not applied live.
| Setting | Default | What it does |
|---|---|---|
| PvP | on | Allows players to fight each other. Turn it off for a strictly co-operative game. |
| Pause when nobody is playing | on | Freezes world time while the server is empty (see §7). |
| Visible in the public list | off | While this is off, the server does not show up in the game's public browser: you get in with the address and password only. |
| Steam Workshop mods | empty | The Steam IDs of your mods (see §4). |
Everything else — fine-grained difficulty, season length, zombie density, how long before water and power shut off — does not come from these settings but from the preset you picked at creation. Those values live in the server's sandbox variables, next to its Server/tickserv.ini file; both are readable from the file manager.
6. How much RAM?
- A group getting started, few or no mods: 8 GB.
- Large group, or a lot of mods: 16 GB.
The part most guides leave out: memory use grows as you explore. A three-week-old world with a widely explored map and built-up bases is significantly heavier than a fresh one. You can move up a tier whenever you need to, without losing your game.
7. Time passes while you're away
On a server left running around the clock, the world keeps ageing while nobody plays: power and water eventually shut off (two in-game weeks by default), crops wither, generators run dry, food spoils.
Two protections are on by default: pause when nobody is connected (time stops while the server is empty), and above all the fact that a stopped server ages nothing at all. You come back to the world exactly where you left it, even three weeks later.
8. Your saves, and how to bring an existing world over
The world is saved on shutdown and restored on the next start. On top of that, a timestamped backup is taken every 30 minutes while the server runs, and the most recent is kept — six staggered up to seven days back with the backup option. You can download them, or restore one — with the server stopped, so you never overwrite a world that is being written to.
Already have a game running elsewhere? You can bring it over:
- Grab the
Zomboid/Saves/Multiplayer/<ServerName>/folder from the machine that was hosting. - Zip that folder — or just its contents, we put it in the right place either way.
- Upload the archive when you create the server.
⚠️ A Build 41 save will not load on Build 42: the formats are incompatible, and nothing converts one to the other.
9. Shut down when you're done
Server off = €0. Auto-shutdown kicks in on its own when nobody is connected, the world is saved on shutdown and restored on the next start.