How to host a Project Zomboid server

A Knox County that keeps going between sessions, with your own sandbox rules and mods. The full manual setup, then the shortcut.

10 min readUpdated 11-12-2026

Project Zomboid dedicated server

Hosting from the main menu is fine for one night, but the world only exists while the host is on. A dedicated server lets the group drop in whenever they like, keeps the zombies (and the loot respawns) on your schedule, and makes running a modded world much less painful.

The server is free on Steam and runs on Windows or Linux. This guide covers the install, the two config files that matter, Workshop mods, and getting everyone connected.

at a glance

Server software
Project Zomboid Dedicated Server, Steam app 380870, free
Runs on
Windows or Linux
Default ports
16261 and 16262 UDP
Settings files
servertest.ini and servertest_SandboxVars.lua
Hardware
Memory is set in ProjectZomboid64.json; more players, mods and a bigger explored map need more
Time to set up
About 45 minutes by hand, a few minutes with HostMode

Three ways to play Project Zomboid together

Host from the game

Use Host on the main menu. Free and quick, but the world is only up while you are.

Dedicated server on your PC

Free software, always-on world, full control of sandbox settings and mods. You handle ports and updates. This guide.

A rented server

Monthly fee for someone else's hardware. Nothing to run at home, less direct access to files.

the manual way

Set up a Project Zomboid server by hand

You'll install the server with SteamCMD, run it once to create its files, adjust the settings, then forward two ports. Commands are for Linux, with Windows notes in each step.

  1. 1

    Install SteamCMD

    On Ubuntu, SteamCMD needs the multiverse repository and 32-bit support. Use a normal user account for the server, not root.

    On Windows, download steamcmd.zip from Valve's developer site, extract it to C:\steamcmd, and run steamcmd.exe once so it updates itself.

    linux
    sudo add-apt-repository multiverse
    sudo dpkg --add-architecture i386
    sudo apt update
    sudo apt install steamcmd
  2. 2

    Download the server

    The server installs with an anonymous login. The server and every player must run the same build, so if your group plays a beta branch, add -beta and the branch name to the app_update part of the command.

    terminal
    steamcmd +force_install_dir ~/pzserver +login anonymous +app_update 380870 validate +quit
  3. 3

    Start it once and set the admin password

    Run the start script. On the first start it asks you to create a password for the built-in admin account; type it twice. Once the console says the server has started, type quit to stop it cleanly.

    On Windows, run StartServer64.bat instead. Adding -servername ourworld to the start command names the config files ourworld.ini and so on; without it, everything is called servertest.

    terminal
    cd ~/pzserver
    ./start-server.sh
  4. 4

    Edit servertest.ini

    The settings live in ~/Zomboid/Server/ (on Windows, C:\Users\you\Zomboid\Server\). In servertest.ini, the lines most groups change are PublicName, Password (needed to join), MaxPlayers, PVP, PauseEmpty (pause the world when nobody is on) and Public (list it in the in-game browser).

    Only edit the files while the server is stopped; it rewrites them on shutdown.

    servertest.ini (excerpt)
    PublicName=Our Knox County
    Password=letmein
    MaxPlayers=8
    PVP=false
    PauseEmpty=true
    Public=false
  5. 5

    Set sandbox options and memory

    Zombie count, speed, loot rarity, day length, water and power shutoff are in servertest_SandboxVars.lua in the same folder. The easiest way to get the values you want is to set up a sandbox game in single player and copy the numbers across. Sandbox changes only fully apply to a new world.

    Server memory is the -Xmx value in ProjectZomboid64.json in the install folder, for example -Xmx8g. Raise it if the server runs out of memory as more of the map gets explored.

  6. 6

    Add Workshop mods (optional)

    Each mod has a Workshop ID (the number in its Steam page link) and a Mod ID (listed on the page). Add Workshop IDs to WorkshopItems= and Mod IDs to Mods= in servertest.ini, separated by semicolons. The server downloads them on the next start, and players get them automatically when they join.

    Map mods also need their map folder added to the Map= line, before Muldraugh, KY.

    servertest.ini (placeholders)
    WorkshopItems=1111111111;2222222222
    Mods=FirstModID;SecondModID
  7. 7

    Forward the ports and join

    Allow UDP 16261 and 16262 in the PC's firewall and forward both to the PC's local IP on your router.

    In the game, choose Join, add a server with your public IP and port 16261, pick a username and account password (the server creates the account on first join), and enter the server password. Inside your network, use the PC's local IP.

    terminal
    sudo ufw allow 16261:16262/udp
  8. 8

    Run admin commands, update and back up

    Log in as admin with the password from step 3, or promote your own account with setaccesslevel "yourname" admin in the server console. Commands like save, kickuser and servermsg work there or in chat with a slash in front.

    After a game update, stop the server, rerun the SteamCMD command, and start it. Back up ~/Zomboid/Saves/Multiplayer/ first. Rolling back a world without a backup isn't possible.

the easier way

Or let HostMode do the setup

HostMode installs and runs the official Project Zomboid server on your own PC and turns the main settings into a form, so you can change them from a browser or your phone.

  1. 1

    Create a free account

    Sign up at hostmode.net/register. The free Solo plan covers one machine and one server with every feature, so you can run this whole guide without paying anything.

  2. 2

    Install the HostMode agent on your PC

    The agent is a small Docker container that runs your game servers and connects out to the dashboard. On Linux, run the command below. It installs Docker if it's missing and asks for your license key, which you'll find under Licenses in the dashboard.

    On Windows 10 or 11, open PowerShell and run irm https://hostmode.net/downloads/install-windows.ps1 | iex instead. It sets up WSL2 and Docker Desktop if you don't have them. Full details are in hostmode.net/docs/getting-started/installation.

    linux
    bash <(curl -fsSL https://hostmode.net/downloads/install.sh)
  3. 3

    Add a Project Zomboid server

    In the dashboard, add a server and pick Project Zomboid. The agent downloads and installs it, with 4 GB of RAM to start.

  4. 4

    Fill in the settings

    Server name, description, max players and server password are fields, along with PvP, pause when empty and public listing. The config editor and file manager cover the sandbox file and Workshop mod lines.

  5. 5

    Forward the UDP ports shown and press Start

    Each server gets its own block of ports; the dashboard shows the exact UDP ports to forward. Press Start and share your address and password.

    The live console takes admin commands, and you get Save World and Force Update buttons, scheduled backups with restore, crash alerts and a Discord status board.

Free for 1 server · Linux & Windows · Runs on your hardware

How much computer does it need?

A small group on a vanilla world runs fine on an ordinary desktop. What grows over time is memory: every part of the map players have explored has to be tracked, and big mod lists add more. Watch memory use over the first few weeks and raise -Xmx before it runs out, rather than after the server starts freezing.

Troubleshooting

Friends can't connect from outside my house

Nine times out of ten this is the port forward. Check that UDP 16261 and 16262 is forwarded to the right local IP (the PC's address can change, so give it a reserved IP in your router), that the firewall on the PC allows it, and that you gave friends your public IP, not the 192.168 one.

The port forward is right but it still doesn't work

Compare the WAN or internet IP shown in your router with the IP a site like whatismyip.com shows. If they're different, or the router's starts with 100.64 to 100.127, your internet provider uses CGNAT and nobody outside can reach your PC directly. Ask your provider for a public IP (some do it free, some charge). No server panel, HostMode included, can get around CGNAT for you.

Friends can join but I can't, using my public IP

Many routers don't let you connect to your own public IP from inside your network. Join with the PC's local IP (for example 192.168.1.50) when you're at home, and give friends the public one.

Players get kicked for a mod or version mismatch

Everyone must be on the same game build as the server, and Workshop mods must match. Restart the server after a mod updates so it downloads the new version, and make sure nobody is on a different beta branch.

My settings were reset

The server writes its config files on shutdown, so edits made while it was running get overwritten. Stop it first, then edit.

Project Zomboid server FAQ

Is the Project Zomboid dedicated server free?

+

Yes. It's free on Steam and installs with an anonymous login, so you don't need another copy of the game.

What ports does Project Zomboid use?

+

UDP 16261 and 16262 by default. Forward both on your router to the PC running the server.

Where is servertest.ini?

+

In the Zomboid folder in your user's home directory: ~/Zomboid/Server/ on Linux or C:\Users\you\Zomboid\Server\ on Windows. It's named after -servername if you set one.

How do I add Workshop mods to my server?

+

Put the Workshop IDs in WorkshopItems= and the Mod IDs in Mods= in the server's ini file, separated by semicolons, then restart. Players download them when they connect.

How do I make myself admin?

+

Use the built-in admin account with the password you set on first start, or run setaccesslevel "yourname" admin in the server console.

Do I need to port forward?

+

Yes. Players connect directly to your PC, so the ports must be forwarded on your router, or the PC needs a public IP. HostMode doesn't change that.