Project Zomboid Dedicated Server Won't Start or Friends Can't Join? 6 Fixes (Build 42)
The six problems that come up again and again with Project Zomboid dedicated servers on Build 42: ports, memory, launching from Steam, the Illegal termination error, the loading screen and the void spawn.
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:
16261UDP16262UDP (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
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.txtin the server install folder contains only one line:108600. - Back up any
.ini,.luaand 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
16261and16262UDP in your router and firewall - Lower
-Xms/-Xmxif 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
If you would rather skip port forwarding and keeping a PC on, our Project Zomboid hosting starts from £10 a month with a 48-hour free trial. For mods, read how to install mods on a Project Zomboid server.
Want to try this on a real server?
Everything in this post works the same on ours, with the panel, off-site backups and full file access included on every plan. Try it free for 48 hours, no credit card required.
Still stuck after reading this?
Ask in our Discord - we help with hosting questions whether or not you host with us.