Project Zomboid

Project Zomboid servertest.ini: Server Settings Explained

One text file holds your server's name, player limit, ports, mods and rules. Here is where it lives, what each main option does and how to change it without breaking anything.

TheGameHosting Team 6 min read
File Manager in the TheGameHosting panel listing a server's folders and files, with search, upload and new file buttons
The File Manager in our panel. Open the server .ini file here, change a line and restart.

servertest.ini is the main settings file of a Project Zomboid server. It lives in Zomboid/Server in the user's home folder, one Option=value per line. It sets the server name, player limit, PvP, whitelist, ports and mods. Stop the server to edit it, or run reloadoptions after saving.

Where is servertest.ini?

The server creates its settings files the first time it runs. According to the PZwiki Dedicated server page, they live here:

  • Windows: %USERPROFILE%\Zomboid\Server
  • Linux: $HOME/Zomboid/Server

Two files matter:

  • servertest.ini holds the server options. servertest is the default server name, so if you start the server with -servername, the files take that name instead.
  • servertest_SandboxVars.lua holds the sandbox rules: zombies, loot and day length. See Project Zomboid sandbox settings.

How to edit servertest.ini safely

  1. Make a backup. In our panel, open Backups and create one.
  2. Stop the server with the Stop button on the Console page.
  3. Open Files and open the server .ini file in the editor.
  4. Change the line you want. The format is Option=value, one per line, with no spaces around the equals sign.
  5. Save and start the server.
File Manager in the TheGameHosting panel listing a server's folders and files, with search, upload and new file buttons
Open the server .ini file in the File Manager. You can also connect over sFTP to upload a file.

You can also edit while the server runs. After you save the file, the admin command reloadoptions applies the changes, and showoptions prints the live values so you can check them. Change ports and the map with the server stopped, and restart.

The main servertest.ini options

These come from the PZwiki Server settings page. Defaults are given only where the wiki states them.

OptionWhat it doesNotes
PublicNameThe server name shown in the server listKeep it clear and short
ServerWelcomeMessageThe message players see when they joinPut your rules or Discord link here
PublicLists the server in the public server listSet it off for a private group
OpenLets anyone join and create an accountTurn it off to use a whitelist
PasswordThe password players enter to joinLeave empty for an open server
MaxPlayersThe player limitThe wiki lists 32 as the default
PVPTurns player-versus-player damage on or offWorks with the safety system
SafetySystemLets players toggle their own PvP flagUsed on servers that allow PvP
SpawnPointA fixed place where new characters spawnLeave at the default to use the spawn regions
PingLimitKicks players whose ping is above the limitHelps when one far-away player drags the server
SaveWorldEveryMinutesHow often the server saves the world
MapThe map folders to loadDefault is Muldraugh, KY. Map mods go before it
ModsMod IDs to enableSemicolon-separated
WorkshopItemsSteam Workshop IDsSemicolon-separated
DefaultPortThe main game port, UDPDefault 16261
UDPPortThe direct-connection port, UDPDefault 16262
RCONPortThe remote admin portDefault 27015
RCONPasswordThe password for RCONBlank by default. RCON stays off while it is blank
DoLuaChecksumChecks that players' game files match the server'sHelps against cheating

The options you will change first

Name, description and who can join

PublicName and ServerWelcomeMessage are what players see. Public decides whether the server shows in the list, and Open decides whether strangers can create an account. For a private group, set Public off and either set a Password or turn Open off and use a whitelist. How to make a Project Zomboid server private covers all three.

Player limit

MaxPlayers is the player limit. PZwiki lists 32 as the default. Patch notes from The Indie Stone for Build 42.20.3 mention "improved server player limit handling, including support for up to 254 players". A higher limit means more RAM and CPU, so size your plan for the number of players who are online at the same time. See Project Zomboid server requirements.

PvP and the safety system

PVP turns damage between players on or off. SafetySystem lets players switch their own PvP flag on, which suits servers where some players want to fight and others do not. Pick the mode before the community grows, because changing it later changes how the server plays.

Ports and RCON

DefaultPort (16261) and UDPPort (16262) are the two UDP ports players connect to. You can also override them with the -port and -udpport start options. RCONPort and RCONPassword set up remote admin. If RCONPassword is empty, RCON is off. Use a strong password if you turn it on, and never share it.

Mods

WorkshopItems, Mods and Map control your mod list. How to add mods to a Project Zomboid server explains the two IDs every mod has and how to add map mods.

A starter servertest.ini

This sample uses options from the table above. Change the values, and leave the lines you do not need out of your own file.

servertest.ini
PublicName=My Project Zomboid Server
ServerWelcomeMessage=Welcome! Be kind, no griefing.
Public=true
Open=true
Password=
MaxPlayers=16
PVP=false
Map=Muldraugh, KY
DefaultPort=16261
UDPPort=16262

MaxPlayers=16 is only an example. Choose the limit that fits your group and your plan's RAM.

Common mistakes

  • Editing the wrong file. If you start the server with -servername, the settings file takes that name. Check that you are editing the file that matches.
  • Spaces around the equals sign. Write MaxPlayers=20, not MaxPlayers = 20.
  • Changing a setting that needs a restart. Ports and the map load when the server starts.
  • Forgetting to save before reloadoptions. The command reads the file on disk.
  • Turning off DoLuaChecksum on a public server. It lets players join with modified game files. PZwiki notes the check can give false positives on Linux servers, so if players are blocked, look at your mods first.

FAQ

Where is servertest.ini?

In Zomboid/Server in the user's home folder: %USERPROFILE%\Zomboid\Server on Windows and $HOME/Zomboid/Server on Linux. If you start the server with -servername, the file takes that name instead of servertest.

Do I need to restart the server after editing servertest.ini?

Stopping the server before you edit is the safest route. If you edit while it runs, save the file and run the admin command reloadoptions. Ports and the map still need a restart.

What is the default MaxPlayers in Project Zomboid?

PZwiki lists 32 as the default. The Indie Stone's 42.20.3 patch notes mention support for up to 254 players. A higher limit needs more RAM and CPU.

How do I make my Project Zomboid server private?

Turn Public off so it does not show in the list, and either set a Password or turn Open off and add players to a whitelist.

What do DefaultPort and UDPPort do?

DefaultPort is the main game port, 16261 by default, and UDPPort is the direct-connection port, 16262 by default. Both are UDP. You can change them in the file or with the -port and -udpport start options.

Hosting for this game

Written by TheGameHosting Team, the people who run our servers in Dallas and Amsterdam and answer your tickets.

All posts

Project Zomboid server hosting from $6.96 USD/month

Edit the server .ini and sandbox files in the browser or over sFTP, with a backup before each change. Project Zomboid runs on every plan from 8 GB up, ready 60 seconds after payment, with no slot fees.

Use code FULL2026 at checkout for 15% off for life.

  • AMD 9950X / 7950X3D CPUs
  • DDR5 RAM and NVMe storage
  • DDoS protection on every plan
  • Dallas, TX and Amsterdam, NL