How to host a Project Zomboid Build 42 server on Windows

updated november 10, 2026 · works for Build 42 (and Build 41 with one change) · about 8 minutes

short version

  • the Project Zomboid dedicated server is free on Steam. your pc can be the server, no paid hosting needed.
  • you need about 7 GB of disk for the server files (plus your mods) and around 8 GB of memory for the server itself.
  • friends connect on UDP 16261 and 16262. those ports have to get through Windows Firewall and your router.
  • easiest: Knox Launcher does all of it in a few clicks. by hand: SteamCMD, StartServer64.bat and a couple of config files.

What you need

The easy way: Knox Launcher

knox launcher is a free, open-source Windows app that sets up and runs the dedicated server for you. it uses the normal Project Zomboid dedicated server from Steam, it just takes care of the files and settings.

  1. download and install it from the releases page (Knox-Launcher-Setup-x.x.x.exe). if Windows says it "protected your pc", click More info, check the publisher says Mitchell Berg, then Run anyway.
  2. pick "host my own server". the setup screen downloads the dedicated server (about 7 GB, once). if you already have "Project Zomboid Dedicated Server" in your Steam library, it can use that one.
  3. let it allow the server through Windows Firewall. Windows asks once. the rule only opens the game ports, not the admin console.
  4. create a server: a name, an optional join password, then a difficulty. the four choices are the game's own Build 42 presets:
    • Apocalypse: the normal game. a good default if you're not sure.
    • Outbreak: a bit easier. power and water last longer, more tools and books.
    • Extinction: hard. more zombies that come back, some sprinters, not much loot.
    • Rising: relaxed building game with few, slow zombies.
  5. add mods if you want. the quickest way is a ready-made modded server: Vanilla+, Road Trip or Homestead, with the mods, load order and settings done for you. or open the Steam Workshop inside the app and hit + add on anything. (more in the mods guide.)
  6. hit start. it checks ports, memory and missing mods first. the first start with mods can take a few minutes while everything downloads and loads.
  7. when it says "Online, friends can join", use Copy invite message on the overview page and paste it in your group chat. it has the address, port and password.
Knox Launcher's overview page for a running server, with the invite box and the players online list.

friends outside your house still need a way in: either forward the ports on your router, or use the playit.gg setup in app settings, which skips the router. the friends can't join guide covers both.

The manual way: SteamCMD

if you'd rather do it yourself, this is the whole thing. it's what knox launcher does under the hood.

1. download the server files

get SteamCMD from Valve and unzip it somewhere like C:\steamcmd. then open a command prompt in that folder and run:

steamcmd.exe +force_install_dir C:\PZServer +login anonymous +app_update 380870 validate +quit

380870 is the dedicated server's Steam app id, and anonymous works because the server is free. for Build 41, add -beta legacy41 right after 380870.

2. start it once

run StartServer64.bat in C:\PZServer. the first time, it asks you to pick an admin password. the server is called servertest unless you start it with -servername yourname. wait until the console prints SERVER STARTED, then type quit to stop it cleanly.

don't click inside the server's console window.

Windows' QuickEdit mode pauses the window when you click in it, and the server freezes on its next log line. players get a black screen. press Esc to unfreeze it, or turn QuickEdit off in the window's properties. (knox launcher turns it off for the server window only.)

3. change the settings

the first start makes the config files in your user folder:

filewhat's in it
%USERPROFILE%\Zomboid\Server\servertest.iniserver options: name, password, max players, PvP, ports, mods
%USERPROFILE%\Zomboid\Server\servertest_SandboxVars.luaworld and zombie settings (the difficulty)
%USERPROFILE%\Zomboid\Saves\Multiplayer\servertest\the world save
%USERPROFILE%\Zomboid\server-console.txtthe server log

edit them while the server is stopped. the server rewrites them on start, so changes made while it's running can get lost.

4. give it enough memory

open StartServer64.bat in a text editor and find -Xmx. -Xmx8g means 8 GB. keep a copy of your change, because a server update can replace the file.

5. let friends in

stuck? this guide goes through every reason a friend can't connect.

Once it's running

First-start problems

More guides