Configure your DayZ server (serverDZ.cfg)
Set up the server name, admin password, player password and maxPlayers in serverDZ.cfg.
Configure your DayZ server (serverDZ.cfg)
The serverDZ.cfg file holds every server-side DayZ setting: public name, admin password, player password, number of slots, missions and game parameters. It is read at startup via the -config= parameter.
Cause / The problem
A poorly edited serverDZ.cfg prevents the server from starting or makes it impossible to connect (wrong port, forgotten password, mission not found). Players can see the server but cannot join it if the network settings are wrong.
Solution
- Locate
serverDZ.cfgin the panel (Files tab), usually at the/serverfilesroot. - Main settings:
Leavehostname = "My DayZ Server EU | onesubnet"; password = ""; passwordAdmin = "AStrongPassword"; maxPlayers = 60;passwordempty for a public server.passwordAdmingrants access to in-game admin commands via#login. - Network and mission configuration:
ThesteamQueryPort = 2303; port = 2302; class Missions { class DayZ { template = "dayzOffline.chernarusplus"; }; };templatepoints to the mission folder (Chernarus, Livonia, etc.). - Enable useful logs:
logAverageFps = 30; logPlayers = 30; logMemory = 30; - Check that the startup line in the panel contains:
Without-config=serverDZ.cfg -port=2302 -profiles=profiles -dologs -adminlog-config=, the server falls back to generic default values. - Restart and connect. In game, type
#login AStrongPasswordin the chat to become admin. The commands#restart,#shutdown,#lock,#unlockbecome available. - To change the map, edit the
template(e.g.dayzOffline.enochfor Livonia) and restart.
Back up serverDZ.cfg before any major change. A missing comma in the class Missions {} syntax causes a silent startup failure — check the logs in /profiles.