# How To Set a Password On Your Eco Server (/docs/eco/set-a-password)



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

Setting a password restricts access to players who know it. Combined with the whitelist, you can let trusted players bypass the password while keeping the server semi-private.

Set a Password [#set-a-password]

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

    In the [XGamingServer Panel](https://panel.xgamingserver.com), go to **Console** and stop your server.
  </Step>

  <Step>
    Open Network.eco [#open-networkeco]

    Click **Files** in the sidebar, navigate to the **Configs** folder, and open `Network.eco`.

    {/* Screenshot needed: File Manager showing Network.eco */}
  </Step>

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

    Find the `Password` field and enter your password:

    ```json
    "Password": "yourpassword"
    ```

    To remove the password and make the server public, set it to an empty string:

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

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

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

Whitelist + Password [#whitelist--password]

Whitelisted players bypass the password requirement. This lets trusted players join without needing the password while everyone else still has to enter it.

> Important: The whitelist on its own does **not** restrict access. It only ignores the password for listed players. You **must** also have a password set for this to act as access control.

<Steps>
  <Step>
    Open Users.eco [#open-userseco]

    In **Files**, navigate to **Configs** and open `Users.eco`.
  </Step>

  <Step>
    Add SteamID64s to the whitelist [#add-steamid64s-to-the-whitelist]

    ```json
    "Whitelist": [
      "76561198012345678",
      "76561198087654321"
    ]
    ```
  </Step>

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

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

Related Guides [#related-guides]

* [Configure Your Server](/docs/eco/configure-your-server)
* [Adding Admins](/docs/eco/adding-admins)
* [Connect to Your Server](/docs/eco/connect-to-your-server)
