Skip to content
Game servers

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.

Project Zomboid dedicated server at a glance
WhatAnswer
Server programProject Zomboid Dedicated Server, Steam app 380870, free
VersionBuild 42, stable since 29 July 2026; latest stable 42.21 (28 September 2026)
Ports at homeUDP 16261 and 16262
Players32 at a time by default (MaxPlayers), admins not counted
MemoryUp to 4 players 4 GB, up to 12 players 6 GB, up to 24 players 8 GB; 2 GB more with mods
Price with usCupCake 4 GB for €4.95 a month, Premium from €8.95, VAT included, cancel monthly

Host it yourself or rent one?

Hosting a Project Zomboid server yourself or renting one
WhatSelf-hostedRented
InstallSteamCMD, app 380870Done when you order
NetworkForward UDP 16261 and 16262An address with a port, nothing in your router
MemoryShared with the PC you play onYour plan's memory, just for the server
OnlineOnly while that PC runsDay 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

  1. 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.
  2. Start it with the start script, StartServer64.bat on Windows or start-server.sh on Linux, not through Steam. On the first start, the server asks for a password for the admin account. The start option -adminpassword skips that question.
  3. 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.
  4. Change the settings. The server creates its files in Zomboid/Server, named after the server: servertest.ini for the server itself and servertest_SandboxVars.lua for the world. Restart after a change.
  5. Check the memory. According to the PZ Wiki, the Windows start script reserves 16 GB for the server by default. Lower the value after -Xmx to 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):

  1. 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.
  2. Admin Username and Admin Password: the admin account that is created on the first start. Replace the default password straight away.
  3. Steam Auto Update: off by default. Turn it on if your server should update on every start, so it keeps matching your players' version.
  4. 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/container/.cache, so your settings are in the .cache/Server folder: for example MyServer.ini and MyServer_SandboxVars.lua. 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?

  1. Copy the address with the port from the game panel: it is at the top of your server's page, under Address.
  2. In Project Zomboid, choose Join from the main menu.
  3. 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.
  4. 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:

Useful Project Zomboid admin commands
CommandWhat it does
setaccesslevel "Sam" adminMakes Sam an admin; other levels are moderator, overseer, gm and observer
playersLists 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
saveSaves the world now
quitSaves 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:

  1. Stop your server and set Open=false in the .ini file.
  2. Start the server and add each friend in the console with adduser "Sam" "password".
  3. 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:

Project Zomboid server memory per group (Standard, a month including VAT)
PlayersPlanWith mods
Up to 4CupCake 4 GB, €4.95Cake 6 GB, €6.95
Up to 12Cake 6 GB, €6.95BIGCake 8 GB, €8.95
Up to 24BIGCake 8 GB, €8.95PartyCake 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.

Frequently asked questions

How do I set up a Project Zomboid dedicated server?

Install the free dedicated server (Steam app 380870) with SteamCMD, start it with StartServer64.bat or start-server.sh, set an admin password on the first start and forward UDP ports 16261 and 16262. With a rented server, it is installed already and you set the name and admin account in the Startup tab.

What ports does a Project Zomboid server use?

UDP 16261 and 16262 by default. A second server on the same machine needs two ports of its own. A rented server has its own address and port, shown in the game panel.

How do I make someone admin on a Project Zomboid server?

Type setaccesslevel with their username in quotes and the level admin in the server console, without a slash, or in the chat with a slash in front. Other levels are moderator, overseer, gm and observer.

How do I make my Project Zomboid server private?

Set Open=false in the .ini file and restart. Then add each friend in the console with adduser, a username and a password. Only those accounts can join. A server password with Password= in the .ini file is another option.

Can I still run Build 41 on a dedicated server?

Yes, through the legacy41 beta branch. The server and every player then have to be on that branch, because server and players must run exactly the same version. Build 41 worlds do not work in Build 42.

More questions? See all frequently asked questions

Related articles