# How to Set a Password on Your Project Zomboid Server (/docs/project-zomboid/server-password)



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

Set a Password [#set-a-password]

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

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

  <Step>
    Edit the server ini [#edit-the-server-ini]

    Click **Files** in the sidebar and open your server's ini file (e.g., `Zomboid/Server/servertest.ini`). Set:

    ```ini
    Password=YourPassword
    ```

    Leave `Password=` empty to make the server public (no password required).
  </Step>

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

    Click **Save Content** and start from **Console**. Players are prompted for the password when joining.
  </Step>
</Steps>

> The `Password` setting is separate from `Open=true/false`. `Open` controls whether non-whitelisted players can join. `Password` adds a password prompt on top of that.

Related Guides [#related-guides]

* [Server Configuration](/docs/project-zomboid/server-config)
* [Whitelist Setup](/docs/project-zomboid/whitelist-setup)
