# How to Configure Your Project Zomboid Server (server.ini) (/docs/project-zomboid/server-config)



PZ uses `[servername].ini` in the `Zomboid/Server/` directory. Gameplay settings are separate in `[servername]_SandboxVars.lua`.

Key Settings [#key-settings]

Server Identity [#server-identity]

| Setting             | Default     | Description                    |
| ------------------- | ----------- | ------------------------------ |
| `PublicName`        | `My Server` | Server browser name            |
| `PublicDescription` | `""`        | Browser description            |
| `Public`            | `true`      | Show in public browser         |
| `Password`          | `""`        | Join password (empty = public) |
| `MaxPlayers`        | `32`        | Max concurrent players         |
| `DefaultPort`       | `16261`     | Main UDP port                  |
| `UDPPort`           | `16262`     | Secondary UDP port             |

Gameplay [#gameplay]

| Setting        | Default | Description                                    |
| -------------- | ------- | ---------------------------------------------- |
| `PVP`          | `true`  | Enable PvP                                     |
| `SafetySystem` | `true`  | Opt-in PvP (players toggle their own PvP flag) |
| `PauseEmpty`   | `true`  | Pause world when empty                         |
| `SleepAllowed` | `false` | Allow sleeping                                 |
| `Open`         | `true`  | `false` = whitelist only                       |

Mods [#mods]

```ini
WorkshopItems=498441420;2297098490
Mods=Hydrocraft;Arsenal(26)GunFighter
```

**Semicolon-separated** (not commas). `WorkshopItems` = Workshop IDs, `Mods` = mod folder names. Both needed.

RCON [#rcon]

| Setting        | Default | Description        |
| -------------- | ------- | ------------------ |
| `RCONPort`     | `27015` | RCON TCP port      |
| `RCONPassword` | `""`    | Set to enable RCON |

Ports [#ports]

| Port  | Protocol | Purpose         |
| ----- | -------- | --------------- |
| 16261 | UDP      | Primary game    |
| 16262 | UDP      | Direct UDP      |
| 27015 | TCP      | RCON (optional) |

Important Note [#important-note]

If sandbox changes don't apply, delete `map_sand.bin` from the save folder and restart.

Related Guides [#related-guides]

* [Sandbox Settings](/docs/project-zomboid/sandbox-settings)
* [server.ini Reference](/docs/project-zomboid/server-ini-reference)
* [Admin Commands](/docs/project-zomboid/admin-commands)
* [How to Install Mods](/docs/project-zomboid/mod-setup)
