Project Zomboid dedicated server: how to set one up for Build 42
Published on 31 October 2026
A Project Zomboid dedicated server is the free server program from The Indie Stone, Steam app 380870. Build 42 has been the stable default on Steam since 29 July 2026, so you no longer need a beta branch for it. You install the server with SteamCMD, open UDP ports 16261 and 16262, set an admin password on the first start, and your friends join from the main menu with the IP address and port. On a CakeHosting server it is installed already, and you set the server name and admin account in the Startup tab. Checked on 29 October 2026, with 42.21 as the latest stable version.
| What | Answer |
|---|---|
| Server program | Project Zomboid Dedicated Server, Steam app 380870, free |
| Version | Build 42, stable since 29 July 2026; latest stable 42.21 (28 September 2026) |
| Ports at home | UDP 16261 and 16262 |
| Players | 32 at a time by default (MaxPlayers), admins not counted |
| Memory | Up to 4 players 4 GB, up to 12 players 6 GB, up to 24 players 8 GB; 2 GB more with mods |
| Price with us | CupCake 4 GB for €4.95 a month, Premium from €8.95, VAT included, cancel monthly |
Host it yourself or rent one?
| What | Self-hosted | Rented |
|---|---|---|
| Install | SteamCMD, app 380870 | Done when you order |
| Network | Forward UDP 16261 and 16262 | An address with a port, nothing in your router |
| Memory | Shared with the PC you play on | Your plan's memory, just for the server |
| Online | Only while that PC runs | Day and night |
Zombies keep shambling and food keeps rotting only while the server runs. A group that plays at different times usually wants a server that stays on.
Set up a Project Zomboid server on your own PC
- Install the server with SteamCMD. Log in anonymously and install app 380870 with
app_update 380870 validate. That gives you Build 42. For Build 41, add-beta legacy41. - Start it with the start script,
StartServer64.baton Windows orstart-server.shon Linux, not through Steam. On the first start, the server asks for a password for the admin account. The start option-adminpasswordskips that question. - Open the ports. Forward UDP 16261 and 16262 in your router and allow them in your firewall. A second server on the same PC needs two ports of its own.
- Change the settings. The server creates its files in
Zomboid/Server, named after the server:servertest.inifor the server itself andservertest_for the world. Restart after a change.SandboxVars.lua - Check the memory. According to the PZ Wiki, the Windows start script reserves 16 GB for the server by default. Lower the value after
-Xmxto what your PC can spare.
Set up a Project Zomboid server at CakeHosting
After you order, the server is installed and runs Build 42. Set these before the first start, in Startup (see Change your server settings under Startup):
- Server Name: letters and numbers only, no spaces. It is also the name of your settings files and your world, so choose it once. A new name later means a new .ini file and a new world.
- Admin Username and Admin Password: the admin account that is created on the first start. Replace the default password straight away.
- Steam Auto Update: off by default. Turn it on if your server should update on every start, so it keeps matching your players' version.
- Start your server on the Console page. On the first start it creates the world and the settings files, which takes a while. The console shows when it is ready.
Your server starts with -cachedir=/home/, so your settings are in the .cache/Server folder: for example MyServer.ini and MyServer_. You open them in the file manager or over SFTP. What each setting does, such as PvP, loot and safehouses, is explained in Project Zomboid server settings.
How do your friends join?
- Copy the address with the port from the game panel: it is at the top of your server's page, under Address.
- In Project Zomboid, choose Join from the main menu.
- Fill in the IP address and the port, plus a username and password of their choice. On an open server, the account is created the first time they join.
- Has the server got a password (
Password=in the .ini file)? They fill it in as the server password.
Server and players must run exactly the same version. Since 42.21, a player who tries to connect with a different version gets a message saying so.
Skip SteamCMD and port forwarding? A Project Zomboid server from CakeHosting runs Build 42 and stays on, also when nobody is playing. See the Project Zomboid server plans, from €4.95 a month.
Admin commands and access levels
Commands go in the server console without a slash, or in the chat in game with a slash in front, for example /players. The admin account from Startup has every right. To make a friend admin or moderator:
| Command | What it does |
|---|---|
setaccesslevel "Sam" admin | Makes Sam an admin; other levels are moderator, overseer, gm and observer |
players | Lists who is online |
kickuser "Sam" | Removes a player from the server |
banuser "Sam" | Bans a player; unbanuser lifts the ban |
servermsg "Restart in 5 minutes" | A message for everyone online |
save | Saves the world now |
quit | Saves and stops the server |
A whitelist: only your own group
By default, anyone who knows your address can create an account (Open=true). For a private server:
- Stop your server and set
Open=falsein the .ini file. - Start the server and add each friend in the console with
adduser "Sam" "password". - Your friends log in with that username and password.
Players who already have an account keep their access.
Mods from the Steam Workshop
Mods go in the .ini file, on two lines: the numbers of the Workshop pages after WorkshopItems= and the mod IDs after Mods=, each separated by a semicolon. Players download the mods automatically when they connect. A mod made for Build 41 does not load in Build 42 until its author has updated it, so check the Workshop page and add mods one at a time. Step by step, with map mods and updates: Project Zomboid mods on your server.
The Indie Stone officially supports Lua mods. Java mods, which need manual installation or a special loader, are not supported, and The Indie Stone asks you to install them only from sources you trust.
How much RAM does a Project Zomboid server need?
The developers give no official memory figure for servers. Memory grows with the number of players and, above all, with how much of the map you explore. This is our advice, using the same rules of thumb as our server size calculator:
| Players | Plan | With mods |
|---|---|---|
| Up to 4 | CupCake 4 GB, €4.95 | Cake 6 GB, €6.95 |
| Up to 12 | Cake 6 GB, €6.95 | BIGCake 8 GB, €8.95 |
| Up to 24 | BIGCake 8 GB, €8.95 | PartyCake 10 GB, €10.95 |
A world that has been running for weeks needs more than a fresh one. If memory gets tight, upgrade your plan and your world stays.
What goes wrong most often?
- Your friend gets a version message. Server and player run different versions. Restart the server with Steam Auto Update on, and let everyone update the game.
- A Build 41 world does not load. Worlds from Build 41 do not work in Build 42. To keep playing an old world, put the server and every player on the legacy41 branch.
- Your settings or world seem gone. The Server Name in Startup was changed. Change it back, and the old .ini file and world are used again.
- The server stops on start after adding a mod. The mod does not support Build 42, or a required mod is missing. Remove the last mod you added and try again.
- Testing the next version? Apart from urgent hotfixes, The Indie Stone now puts new builds on the Pre-Release branch for at least a week before they reach Stable. Server and players must be on the same branch, and back up first.
Plan a nightly restart in Schedules with servermsg and save first (see Schedule automatic restarts), and keep a backup before every big update. A bitten character you will not get back; a world you can.