Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Arma 3 Server Cfg Guide: Every Important Setting

· 6 min read · Home Tech

In this article
  1. What Is server.cfg and Where Does It Go?
  2. Essential Server Identity and Access Settings
  3. Mission Rotation and Voting
  4. Gameplay and Time Settings
  5. Performance and Network Tuning
  6. Admin and Logging Settings
  7. Common Mistakes and Troubleshooting
  8. Frequently Asked Questions

This guide explains every important setting in an Arma 3 server.cfg file, covering what each directive does, how to configure it correctly, and common pitfalls. You'll learn the purpose of core settings like hostname, password, motd, and allowedVoteCmds, plus advanced options for performance, logging, and BattlEye integration.

What Is server.cfg and Where Does It Go?

server.cfg is the main configuration file for a dedicated Arma 3 server. It controls server identity, player access, mission rotation, voting, and many gameplay rules. The file is a plain text document placed in the server's root directory (e.g., C:\Arma3Server\server.cfg). When you launch the server executable, you reference it with the -config=server.cfg startup parameter. If the file is missing, the server uses default values, which may not be suitable for a public or private community.

Each line in the file is a directive followed by a value, often enclosed in quotes. Comments start with // or /* */. The server reads the file at startup; changes require a restart to take effect. There is no live reload.

Essential Server Identity and Access Settings

These settings define who your server is and who can join. They are the first things you should set.

  • hostname – The name shown in the server browser. Example: hostname = "My Community Server";
  • password – A password required to join the server. Leave empty for public access. Example: password = "secret";
  • passwordAdmin – A separate password for admin access, used with the #login command in-game. Example: passwordAdmin = "admin123";
  • motd[] – The message of the day shown when players connect. It's an array of strings, each displayed on a separate line. Example: motd[] = {"Welcome!", "Read the rules at our website."};
  • motdInterval – How often (in seconds) the MOTD is re-displayed. Default is 5. Set to 0 to disable.
  • maxPlayers – Maximum concurrent players. The server will reject connections beyond this number. Example: maxPlayers = 32;
  • kickDuplicate – If set to 1, kicks a player who joins with the same GUID as someone already connected. Prevents double-logins.

Mission Rotation and Voting

These settings control which missions run and how players can influence the rotation.

  • allowedVoteCmds[] – A whitelist of voting commands players can use. Common entries include "mission", "kick", "ban". If empty, no voting is allowed. Example: allowedVoteCmds[] = {"mission"};
  • voteMissionPlayers – Minimum number of players required to start a mission vote. Example: voteMissionPlayers = 3;
  • voteThreshold – Percentage (0.0 to 1.0) of votes needed to pass a vote. Default is 0.33 (33%).
  • voteTimeout – How long (in seconds) a vote stays open. Default is 30.
  • class Missions – A block that defines the mission rotation. Each mission has a template (the mission file name), difficulty (e.g., "regular", "veteran"), and playMin/playMax (minimum/maximum players). Example:
    class Missions
    {
        class Mission1
        {
            template = "mission1.Altis";
            difficulty = "regular";
        };
    };

Gameplay and Time Settings

These affect the in-game world and rules.

  • onLoadName – The name of the server shown during loading screens. Often same as hostname.
  • onLoadMission – A description of the current mission, shown on loading screens.
  • onLoadIntro – A short intro text on the loading screen.
  • onLoadIntroTime – How long (in seconds) the intro is shown.
  • onLoadMissionTime – How long (in seconds) the mission loading screen is shown.
  • minPlayers – Minimum players needed before the mission starts. If not reached, the server waits.
  • maxPlayers – Already covered, but note it also affects mission selection; some missions have player limits.
  • disableChannels[] – An array of channel numbers to disable. For example, disableChannels[] = {0,2,3}; disables global, side, and command channels. Useful for roleplay servers.
  • allowedFilePatching – If set to 1, allows clients to use file patching (modding). Default is 0 for security.

Performance and Network Tuning

These settings help the server run smoothly, especially with many players or mods.

  • steamProtocolMaxDataSize – Maximum size of a Steam networking packet. Default is 1024. Lower values can reduce lag on slow connections, but may increase overhead.
  • steamQueryPort – The port for Steam query responses. Usually set to the game port + 1. Example: if game port is 2302, query port is 2303.
  • steamPort – The Steam authentication port. Typically game port + 2 (e.g., 2304).
  • logFile – Path to the server log file. Example: logFile = "server.log";
  • BattlEye – Set to 1 to enable BattlEye anti-cheat. Requires the BattlEye directory in the server folder.
  • verifySignatures – Set to 1 to enforce signed addons (prevents modified files). Recommended for public servers.
  • allowedLoadFileExtensions[] – List of file extensions clients can load from the server. Default includes .sqf, .sqm, .hpp, etc.
  • allowedPreprocessFileExtensions[] – Similar, for preprocessed files.

Admin and Logging Settings

These settings help you manage the server and keep records.

  • adminLog – Set to 1 to log admin actions.
  • statDB – Set to 1 to enable the statistics database (requires an external database).
  • statDBName – Name of the database for stats.
  • statDBHost – Hostname or IP of the database server.
  • statDBPort – Port of the database server.
  • statDBLogin – Username for the database.
  • statDBPassword – Password for the database.
  • logFile – Already mentioned, but also controls the log location.
  • serverLongitude and serverLatitude – Set the server's physical location for the in-game map. Not critical for most.

Common Mistakes and Troubleshooting

Many server issues stem from simple configuration errors. Here are the most frequent ones:

  • Missing semicolons – Every directive must end with a semicolon. A missing one causes the server to fail to start.
  • Wrong quotes – Use double quotes for strings. Single quotes are not accepted.
  • Incorrect class Missions syntax – The class Missions block must be properly nested with braces and semicolons. A common mistake is forgetting the closing brace.
  • Port conflicts – Ensure the game port, Steam query port, and Steam port are all different and not used by other services.
  • BattlEye not installed – If you set BattlEye = 1 but don't have the BattlEye folder, the server won't start. Download the BattlEye server files separately.
  • passwordAdmin too weak – Use a strong admin password; it grants full control.

If the server doesn't start, check the server log file (usually server.log or arma3server.log) for error messages. The log often points to the exact line number of the problem.

Frequently Asked Questions

How do I change the server name?

Edit the hostname line in server.cfg. For example: hostname = "My Cool Server";. Save the file and restart the server. The new name appears in the server browser.

What is the difference between password and passwordAdmin?

password is the join password; players must enter it to connect. passwordAdmin is used by admins to log in via the in-game console (press ~ and type #login password). They are independent; you can have one without the other.

How do I set up a mission rotation?

Use the class Missions block. List each mission as a subclass with a template pointing to the mission file (e.g., coop_mission.Altis). The server cycles through them in order. You can also allow players to vote with allowedVoteCmds[] = {"mission"};.

Why is my server not showing in the server browser?

Check that the game port is open in your firewall and that the steamQueryPort is correctly set (usually game port + 1). Also ensure steamPort is set (game port + 2). If you're behind a router, forward all three ports.

Can I use a single server.cfg for multiple servers?

Yes, but you must change the ports and log file names for each instance. Otherwise, they'll conflict on the same ports and overwrite logs. Use separate directories or startup parameters to specify different config files.

How do I enable BattlEye?

Set BattlEye = 1; in server.cfg. You also need the BattlEye server files (battleye folder) in your server directory. Download them from the official BattlEye site or your hosting provider. Without the files, the server will fail to start.