# How To Set a Password on Your Arma 3 Server (/docs/arma-3/set-a-password)



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

Setting a password on your Arma 3 server restricts access to only players who know the password. This is useful for private sessions and milsim events.

<div className="fd-steps">
  <div className="fd-step">
    Open the Startup Page [#1-open-the-startup-page]

    Log in to the [XGamingServer Panel](https://panel.xgamingserver.com) and select your Arma 3 server. In the sidebar, click **Startup**.
  </div>

  <div className="fd-step">
    Set the Server Password [#2-set-the-server-password]

    Find the **Server Password** field and enter the password you want players to use when connecting.
  </div>

  <div className="fd-step">
    Restart Your Server [#3-restart-your-server]

    Go to **Console** in the sidebar and restart your server.

    Players will now be prompted to enter the password when they try to join.

    > 💡 **Tip:** You can also set the password directly in your `server.cfg` by editing the `password` line:
    >
    > ```
    > password = "yourpassword";
    > ```

    > 📝 **Note:** To remove the password and make the server public again, simply clear the password field in **Startup** and restart.
  </div>
</div>
