Self-hosting a Project Zomboid server (and when renting one is worth it)
Updated: 02 October 2026 · Guide · VPS · Game server
Project Zomboid's dedicated server comes via SteamCMD, anonymously, without the account having to own the game. It's a Java program and brings its own Java runtime.
Install and start
steamcmd +force_install_dir ~/pz +login anonymous +app_update 380870 validate +quit cd ~/pz && ./start-server.sh -servername myserver -adminpassword 'secret'
On first start the server creates the admin account and writes its settings. Run the start in tmux or screen so it survives a dropped SSH connection.
Ports: two, both UDP
sudo ufw allow 16261:16262/udp
Fellow players add the server to their favourites under “Join” with address and port. On first joining, everyone creates their account on the server with a username and password.
Two files, two responsibilities
Under ~/Zomboid/Server/ there is, per server name, an .ini file for operation (player count, password, PvP, mods) and a _SandboxVars.lua for the game rules (zombie speed, loot, infection). If you only know one of them, you'll spend a long time looking for the other half of the settings.
Mods: two lists that have to match
The .ini contains WorkshopItems= (the Workshop numbers, so the server downloads the files) and Mods= (the mod IDs from each mod.info, so it activates them). If an entry is missing from either list, the server silently doesn't load the mod. That's the most common reason why “the mod doesn't work”.
Memory and updates
Memory grows with the explored map, not with the player count. The Java upper limit is in ProjectZomboid64.json in the installation folder (-Xmx); it must stay below the machine's RAM, otherwise the operating system kills the process. After a game update the server rejects clients with a different version. Running the SteamCMD command before every start keeps it up to date.
If the server crashes while loading
If the start aborts at the same point every time, usually while tiles and textures are loading, Java wants more memory than the machine has. By default ProjectZomboid64.json says -Xmx8g, regardless of the actual RAM. For us, a server with 4 GB was therefore killed by the operating system, reproducibly at the same log line.
journalctl -k | grep -i 'out of memory'
Set the value about 1 GB below the machine's RAM (so -Xmx3072m with 4 GB); Java itself and the system need the rest. With this value the first start went through for us with 4 GB too, but only just. With bigger maps and mods, expect to need more.
Running, but nobody can join? First check whether the process is really listening on the port you opened. “The process is running” doesn't prove that: we had a server exposed on a port where nothing was listening, and that only showed up in a targeted check.
sudo ss -ulpn | grep -E ':(16261|16262)'
Keep it running permanently
Instead of tmux or screen: as a systemd service the server starts by itself after a machine reboot, and a crash leads to a new start instead of an empty server. Create the file /etc/systemd/system/projectzomboid.service:
[Unit] Description=Project Zomboid Server After=network-online.target Wants=network-online.target [Service] User=<username> WorkingDirectory=/home/<username>/pz ExecStart=/home/<username>/pz/start-server.sh -servername myserver Restart=on-failure [Install] WantedBy=multi-user.target
sudo systemctl daemon-reload sudo systemctl enable --now projectzomboid journalctl -u projectzomboid -f
The admin password is only needed on the very first start, which is why it's missing in the service. Before a restart, enter save in the server console, otherwise you lose the progress since the last autosave.
Measured: a fresh server without players
Freshly ordered and without players, measured on 28 September 2026 on our game server node (Xeon Gold 6138): installation including the download via SteamCMD took 191 seconds, the first start until ready 73 seconds. After that the server used 1.2 GB of RAM, even though the Java limit is set to 5 GB with us. The limit is a cap, not consumption. At idle 4 % of one core, 7.3 GB on disk, a full backup 2.5 GB compressed in 40 seconds. Both ports were listening on UDP. RAM excluding file cache, CPU as a share of one core at idle.
Self-host or rent: the honest trade-off
With a Zomboid server rented from us, the settings from both files are fields in the control panel, with the two mod lists side by side. The server fetches the current version via SteamCMD on every start; after a game update a restart is enough. Every night it creates a backup, keeping the last seven.
- Rent a Project Zomboid serverServer INI and sandbox rules in the control panel
- All Zomboid settings in the panelGenerated from the control panel's source code
- Before this: secure the VPSSet up SSH key and firewall
- Server running, but nobody can join?Five checks and all default ports