# How to Set a Password on Your Sons of the Forest Server (/docs/sons-of-the-forest/server-password)



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

<Steps>
  <Step>
    Stop your server [#stop-your-server]

    Go to **Console** in the [XGamingServer Panel](https://panel.xgamingserver.com) and stop the server.
  </Step>

  <Step>
    Open dedicatedserver.cfg [#open-dedicatedservercfg]

    Click **Files** in the sidebar and open `dedicatedserver.cfg`.
  </Step>

  <Step>
    Set the password [#set-the-password]

    Find `Password` and set it:

    ```json
    "Password": "MySecretPassword"
    ```

    The password can be up to **40 characters**. To remove the password:

    ```json
    "Password": ""
    ```
  </Step>

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

    Click **Save Content** and start from **Console**.
  </Step>
</Steps>

Players will be prompted to enter the password when they select your server in the browser.

Related Guides [#related-guides]

* [Server Configuration](/docs/sons-of-the-forest/server-config)
* [Connect to Your Server](/docs/sons-of-the-forest/join-server)
