Skip to content

Project Zomboid: Server Configuration

Learn how to configure the server name, password, whitelist, PvP, profile, and gameplay rules for your Project Zomboid game server.

27 November 20266 min read4 Views0 helpful

Don't have your own server yet? Host your Project Zomboid server with ZAP-Hosting from €7.49 / month.Or try 3 days from €1.35

Introduction

With the right configuration, you can make your Project Zomboid game server exactly what you have in mind: its own name in the server list, open to everyone or just your group, with or without PvP, and with gameplay rules that suit you. In this guide, we’ll show you which settings are available, where to find them in ZapX, and what you can adjust directly in the servertest.ini and servertest_SandboxVars.lua files.

How the configuration works

Project Zomboid stores its settings in two files in the Server folder:

  • servertest.ini: Server settings such as name, password, player count, PvP, whitelist, mods, and RCON.
  • servertest_SandboxVars.lua: Your world's gameplay rules, such as zombies and loot.

You don’t need to change the most important values in servertest.ini by hand: you can find them in ZapX under Configuration in the Startup parameters tab. Each time your server starts, it writes the values from the startup parameters to the corresponding lines in servertest.ini. All other lines and the entire servertest_SandboxVars.lua file are left unchanged. You can edit both files in the Configuration tab or in the Files tab under the Server folder.

Important

Always change values that are available as startup parameters in the Startup parameters, not directly in servertest.ini. Any changes made to the file will be overwritten with the startup parameter values the next time the server starts.

After you save, ZapX will prompt you to restart the server. Your changes will only take effect after the restart.

Startup parameters at a glance

Startup parameterMeaning
Displayed server nameThe name of your server in the server list (PublicName). Default: ZAP Project Zomboid
Server descriptionA short description of your server in the server list (PublicDescription). Default: Project Zomboid server powered by ZapX
Server passwordThe password required to join (Password). Leave blank for a server without a password (default).
Publicly visibleShows your server in the public server list (Public). Default: enabled
Open serverEnabled: players can join without being added to the whitelist. Disabled: only players with an account created by an admin can join (Open). Default: enabled
Max. playersHow many players can play on your server at the same time (MaxPlayers). Default: 10
PvPAllows players to fight each other (PVP). Default: enabled
Pause without playersGame time stops while nobody is online (PauseEmpty). Default: enabled
Enable VACEnables or disables Steam's anti-cheat protection (VAC) (SteamVAC). Default: enabled
Enable RCONEnables or disables the remote console (RCON) (RCONEnabled). Default: enabled
Profile nameThe name of the server profile. It determines the file names and the world; see below. Default: servertest

You don’t configure Steam Workshop mods in the startup parameters, but in the Workshop tab. See Install Mods to learn how.

Profile name and world

Project Zomboid uses two different names:

  • Displayed server name: The name players see in the server list. You can change this at any time.
  • Profile name: The internal name of your server profile. It determines the file names and the world.

With the default profile name servertest, your server uses these files and folders:

File or folderContents
Server/servertest.iniServer settings
Server/servertest_SandboxVars.luaThe world's gameplay rules
Saves/Multiplayer/servertestThe world, including all buildings, items, and player progress
db/servertest.dbPlayer accounts and whitelist
Warning

If you change the Profile name, your server will start with default settings and a new world. The previous profile and all its files will remain under its name and will be available again as soon as you enter the old name. If you only want to change the name shown in the server list, use Displayed server name.

A slash (/) is not allowed in the profile name. If you chose a different profile name, the file names will match it, for example Server/MyServer.ini and Server/MyServer_SandboxVars.lua. In the following sections, we use the default name servertest.

See Manage Savegames to learn how to back up or download your world, or upload your own.

Gameplay rules in SandboxVars.lua

The servertest_SandboxVars.lua file contains your world's sandbox settings, such as how many zombies there are and how much loot you find. Project Zomboid creates the file with its default values the very first time your server starts. ZapX does not overwrite anything in it, so any changes you make there will be preserved.

To change the gameplay rules:

  1. Stop your server.
  2. Open the Server/servertest_SandboxVars.lua file in the Configuration tab or the Files tab.
  3. Change the values you want and save the file.
  4. Start your server again.
Important

Project Zomboid only uses the world's start date (StartYear, StartMonth, StartDay, and StartTime) when a new world is created. An existing world keeps its date, even after a restart. For a new start date to take effect, you need a new world: back up the old world, remove the Saves/Multiplayer/servertest folder while the server is stopped, and restart the server, or choose a new Profile name.

Tip

Download the servertest_SandboxVars.lua file in the Files tab before making major changes. That way, you can always restore the previous version.

Additional settings in servertest.ini

Your server overwrites these lines every time it starts, so making manual changes to them won’t have any effect:

  • All values from the startup parameters: PublicName, PublicDescription, Password, Public, Open, MaxPlayers, PVP, PauseEmpty, SteamVAC, and RCONEnabled
  • The ports DefaultPort, UDPPort, and RCONPort assigned to your server by ZapX
  • RCONPassword
  • WorkshopItems with the list from the Workshop tab

You can freely edit all other lines in servertest.ini, such as GlobalChat (turn global chat on or off) or VoiceEnable (turn in-game voice chat on or off). Your server will preserve them each time it starts.

Mods line and custom mods

The Mods line determines which mods Project Zomboid loads and in what order. Many Workshop items include multiple mods, for example, different variants. Here’s how your server handles the line:

  • If you add an item in the Workshop tab, your server appends its mod IDs to the end of Mods the next time it starts.
  • If you remove an item, your server removes its mod IDs from Mods.
  • As long as the Workshop list doesn’t change, Mods stays exactly as you entered it. You can remove variants you don’t need or change the loading order there.

Put any mods you upload yourself in the mods folder and add their mod IDs (from the mod's mod.info) to the Mods line yourself, separated by semicolons.

RCON password and admin account

Your server generates an RCON password at random on the first start and saves it in the generated-secrets/rcon_password file. Each time it starts, it writes the password to servertest.ini as RCONPassword. If you want to use your own password, replace the contents of this file while the server is stopped, then start the server again. See RCON to learn how to connect using an RCON program. You can find the RCON port in your server's Overview.

Your server also creates an internal admin account named admin on the first start. See Become an Admin to learn how to give your own player account admin rights. To learn how to set up a whitelist using Open server and accounts, see Whitelist.

Checking settings while the server is running

In the Console tab, the showoptions command displays the current server options. Use changeoption <option> <new_value> to change an option at runtime, or reloadoptions to have your server reload the options from servertest.ini. Startup parameter values work the same way here: the next time your server starts, it will restore the values from the startup parameters.

Conclusion

Your Project Zomboid server is now set up just the way you want it. See Become an Admin to learn how to give yourself admin rights. If something isn’t working as it should, our guide Common Issues can help. If you have any other questions, our support team is available every day! 🙂

Free tools

Project Zomboid Tools

View all

FAQ

Frequently asked questions

Set the server name, description, password, visibility, whitelist (Open server), max. players, PvP, pause when empty, VAC, and RCON in the Configuration tab under Startup parameters. Edit other server settings in servertest.ini and gameplay rules such as zombies and loot in servertest_SandboxVars.lua, both in the Server folder. Manage mods in the Workshop tab.
Each time your server starts, it writes the startup parameter values to servertest.ini, including PublicName, Password, Open, MaxPlayers, and PVP, as well as the ports, RCON password, and Workshop items. Change these values in Startup parameters or the Workshop tab instead. Your server keeps all other lines unchanged.
The displayed server name appears in the server list and can be changed at any time. The profile name determines the file names (such as servertest.ini) and the world in Saves/Multiplayer. A new profile name starts with default settings and a new world, while the old profile is preserved.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.