# How To Set a Password on Your Starbound Server (/docs/starbound/set-a-password)



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

Setting a password on your Starbound server restricts access to only players who know the password.

<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 starbound_server.config [#4-open-starbound_serverconfig]

    Find and click on `starbound_server.config` to open it in the editor.
  </div>

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

    Find the `"serverPassword"` field and enter your desired password:

    ```
    "serverPassword" : "YourPasswordHere",
    ```

    > 📝 **Note:** To remove the password and make the server public, set the value to an empty string: `"serverPassword" : "",`
  </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 need to enter it when [connecting](/docs/starbound/connect-to-your-server) in the multiplayer menu.
  </div>
</div>
