How to change the port of a Project Zomboid server
On SLASHPLAY you don't: it sets DefaultPort on every start. Players use the port in the address on the server page.
DefaultPort
The server's main game port. Default 16261.
DefaultPort=<number> Examples
DefaultPort=16261 The game's default.
What it does
The port players connect to. On SLASHPLAY the port is part of the address on the server page.
Good to know
- SLASHPLAY sets the ports. Changing them here stops players from connecting.
- SLASHPLAY writes it on every start, so a change here is replaced anyway.
Run it on your server
Admin commands go in the Console tab of the server page without the slash (players), or in game chat with it (/players) from an admin account. Settings live in Zomboid/Server/main.ini and main_SandboxVars.lua on the Files tab and apply at the next start. New to this? Start a Project Zomboid server first.
Your own
Project Zomboid server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.