# How To Set a Password on Your SCP: Secret Laboratory Server (/docs/scp-secret-laboratory/set-a-password)



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

Setting a password on your SCP: Secret Laboratory server restricts access to only players who know the password. This is useful for private events, community servers, or testing.

<div className="fd-steps">
  <div className="fd-step">
    Open the XGamingServer Panel [#1-open-the-xgamingserver-panel]

    Log in to the [XGamingServer Panel](https://panel.xgamingserver.com).
  </div>

  <div className="fd-step">
    Stop Your Server [#2-stop-your-server]

    Make sure your server is **stopped** before making changes.
  </div>

  <div className="fd-step">
    Open Files [#3-open-files]

    In the sidebar, click **Files**.
  </div>

  <div className="fd-step">
    Open the Configuration File [#4-open-the-configuration-file]

    Navigate to the configuration directory and open `config_gameplay.txt`.
  </div>

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

    Find the `server_password` setting and enter your desired password:

    ```
    server_password: YourPasswordHere
    ```

    > 📝 **Note:** To remove the password and make the server public again, clear the password value or set it to an empty string.
  </div>

  <div className="fd-step">
    Save and Start Your Server [#6-save-and-start-your-server]

    Click **Save** and then **Start** your server.
  </div>

  <div className="fd-step">
    Share the Password [#7-share-the-password]

    Give the password to players you want to allow on your server. They will be prompted to enter it when [connecting](/docs/scp-secret-laboratory/connect-to-your-server).
  </div>
</div>
