# How to Set a Password on Your Arma Reforger Server (/docs/arma-reforger/server-password)







import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
import { Step, Steps } from 'fumadocs-ui/components/steps';

The server password controls **who can join** the server. It's separate from the **admin password**, which controls who has admin access. See [Admin Setup](/docs/arma-reforger/admin-setup) for the admin password.

> Server passwords must be **alphanumeric only** — no spaces or special characters.

<Tabs items={['Config Editor (Recommended)', 'Manual JSON']}>
  <Tab value="Config Editor (Recommended)">
    <Steps>
      <Step>
        Open the Config Editor [#open-the-config-editor]

        In the [XGamingServer Panel](https://panel.xgamingserver.com), click **Arma Reforger Config** in the sidebar.

                <img alt="Config Tool in the sidebar" src={__img0} placeholder="blur" />
      </Step>

      <Step>
        Go to the Game tab [#go-to-the-game-tab]
      </Step>

      <Step>
        Set the Server Password [#set-the-server-password]

        Enter your password in the **Server Password** field. To remove it and make the server public, leave the field empty.

                <img alt="Config Editor Game tab" src={__img1} placeholder="blur" />
      </Step>

      <Step>
        Save and restart [#save-and-restart]

        Click **Save Changes** and restart from **Console**.
      </Step>
    </Steps>
  </Tab>

  <Tab value="Manual JSON">
    <Steps>
      <Step>
        Stop the server [#stop-the-server]
      </Step>

      <Step>
        Edit config.json [#edit-configjson]

        Click **Files** in the sidebar and open `config.json`. Set:

        ```json
        "game": {
          "password": "YourPassword"
        }
        ```

        For a public server:

        ```json
        "game": {
          "password": ""
        }
        ```
      </Step>

      <Step>
        Save and start [#save-and-start]
      </Step>
    </Steps>
  </Tab>
</Tabs>

Server Password vs Admin Password [#server-password-vs-admin-password]

| Setting             | Purpose                                   | Field                |
| ------------------- | ----------------------------------------- | -------------------- |
| **Server password** | Required to **join** the server           | `game.password`      |
| **Admin password**  | Required to use `#login` for admin access | `game.passwordAdmin` |

These are independent — you can have either, both, or neither.

Related Guides [#related-guides]

* [Server Configuration](/docs/arma-reforger/server-config)
* [Admin Setup](/docs/arma-reforger/admin-setup)
* [Adding a Whitelist](/docs/arma-reforger/adding-whitelist)
