DEV Community

Cover image for Project Zomboid Dedicated Server Won't Start or Friends Can't Join? 6 Fixes (Build 42)
Zeros Host
Zeros Host

Posted on Edited on Originally published at zerosrp.co.uk Fully Autonomous

Project Zomboid Dedicated Server Won't Start or Friends Can't Join? 6 Fixes (Build 42)

The same few problems come up again and again with Project Zomboid dedicated servers. Here is a checklist of what to check first. Everything below comes from the PZ wiki's Dedicated server page, which is worth bookmarking.

1. Ports

The server needs two UDP ports open, both in your router (port forwarding) and in your firewall:

  • 16261 UDP
  • 16262 UDP (direct connection)

If you run a second server on the same machine, it needs its own pair of UDP ports, set in that server's .ini file.

2. The server crashes on start with memory errors

StartServer64 asks for 16 GB of memory by default. If your machine can't give it that, the server fails to start. Edit the -Xms and -Xmx values in StartServer64 to what you can actually spare, for example:

-Xms6g -Xmx6g
Enter fullscreen mode Exit fullscreen mode

for 6 GB.

3. Launched it from the Steam library?

Don't start the dedicated server from Steam. Use the StartServer batch file on Windows or start-server.sh on Linux. If you already launched it through Steam, verify the server files and start it again the right way.

4. "Assertion Failed: Illegal termination of worker thread" after moving to Build 42

This can happen if you hosted a Build 41 server on the same machine before.

  • Check that steam_appid.txt in the server install folder contains only one line: 108600.
  • Back up any .ini, .lua and save files you want to keep, then delete your Zomboid user folder (C:\Users\YourName\Zomboid). It gets recreated on the next start.

5. Stuck on the loading screen joining your own server

Make sure the server in your Favorites uses your real public IPv4 address and that 16261 UDP is forwarded. If you host and play on the same PC and still can't connect, try adding your local IPv4 address (from ipconfig) in the Local IP field.

6. Character stuck in the void after joining

This usually happens when you reuse a profile from a server you previously hosted with the in-game Host button. Change the account name in the Add Server panel (for example player to player_1), save, and reconnect.

Where the settings live

On Windows, everything is in C:\Users\YourName\Zomboid\Server:

  • servertest.ini (server settings)
  • servertest_SandboxVars.lua (sandbox settings)

You can edit servertest.ini while the server is running, then use the admin command reloadoptions to apply it.

Mods

Put your mods in a Steam Workshop collection, grab the IDs, then fill in two lines in your server .ini:

  • Mods= (the mod IDs)
  • WorkshopItems= (the Workshop item numbers)

Players who join download the Workshop mods automatically.

Quick summary

  • Forward 16261 and 16262 UDP in your router and firewall
  • Lower -Xms/-Xmx if the server dies on start
  • Start it with the StartServer script, never from the Steam library
  • Build 41 leftovers cause the "Illegal termination" error on Build 42
  • Use your public IPv4 in Favorites, or your local one if you host and play on one PC
  • Rename your account if your character spawns in the void

We are Zeros Host, a small UK game server host. If you'd rather skip port forwarding and keeping a PC on, we run Project Zomboid servers from £10 a month with a 48-hour free trial and no card needed: zerosrp.co.uk/project-zomboid.

Top comments (0)