# How to Add Admins on Your Killing Floor 2 Server (/docs/killing-floor-2/adding-admins)



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

Admin access in Killing Floor 2 uses a password-based system. Once configured, admins can log in through the in-game console or the WebAdmin browser panel to manage players, change maps, adjust settings, and more.

Setting the Admin Password [#setting-the-admin-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) and stop your Killing Floor 2 server.
  </div>

  <div className="fd-step">
    Navigate to the config file [#2-navigate-to-the-config-file]

    In the sidebar, go to `Files` and navigate to `KFGame` > `Config`. Open `PCServer-KFGame.ini`.
  </div>

  <div className="fd-step">
    Set the admin password [#3-set-the-admin-password]

    Find the `[Engine.AccessControl]` section and set your admin password:

    ```ini
    [Engine.AccessControl]
    AdminPassword=YourSecureAdminPassword
    ```
  </div>

  <div className="fd-step">
    Set the admin name (optional) [#4-set-the-admin-name-optional]

    You can also set a custom admin username in the same section:

    ```ini
    AdminName=Admin
    ```

    This is the username you'll use when logging into WebAdmin. If not set, the default username is `Admin`.
  </div>

  <div className="fd-step">
    Save and restart [#5-save-and-restart]

    Click **Save** and start your server.

    > 📝 **Note:** The admin password is different from the [server password](/docs/killing-floor-2/set-a-password). The admin password grants management access, while the server password controls who can join the game.
  </div>
</div>

Logging In as Admin (In-Game) [#logging-in-as-admin-in-game]

<div className="fd-steps">
  <div className="fd-step">
    Connect to your server [#1-connect-to-your-server]

    Join your Killing Floor 2 server normally.
  </div>

  <div className="fd-step">
    Open the console [#2-open-the-console]

    Press the **tilde key** (`~`) to open the console.
  </div>

  <div className="fd-step">
    Log in [#3-log-in]

    Type the following command:

    ```
    AdminLogin YourSecureAdminPassword
    ```

    You'll see a confirmation message when successfully logged in.
  </div>

  <div className="fd-step">
    Log out when done [#4-log-out-when-done]

    To revoke your admin session, type:

    ```
    AdminLogout
    ```
  </div>
</div>

Admin Commands [#admin-commands]

Once logged in as admin, you can use these commands in the console:

Player Management [#player-management]

| Command                         | Description                                          |
| ------------------------------- | ---------------------------------------------------- |
| `Admin PlayerList`              | List all connected players and their IDs             |
| `Admin Kick <PlayerName>`       | Kick a player by name                                |
| `Admin KickBan <PlayerName>`    | Kick and ban a player                                |
| `Admin SessionBan <PlayerName>` | Ban for the current session only (resets on restart) |

Map and Game Management [#map-and-game-management]

| Command                            | Description                           |
| ---------------------------------- | ------------------------------------- |
| `Admin ChangeMap <MapName>`        | Switch to a different map immediately |
| `Admin SetGamePassword <Password>` | Set or change the server password     |
| `Admin ClearGamePassword`          | Remove the server password            |
| `Admin Pause`                      | Pause the game                        |
| `Admin Unpause`                    | Unpause the game                      |

Server Management [#server-management]

| Command                        | Description                                 |
| ------------------------------ | ------------------------------------------- |
| `Admin Say <Message>`          | Send a message to all players as the server |
| `Admin SetMaxPlayers <Number>` | Change the maximum player count             |
| `Admin RestartMap`             | Restart the current map                     |

> 💡 **Tip:** Admin commands are not case-sensitive, but map names are. Use the exact map name as listed in the [map list](/docs/killing-floor-2/change-map) (e.g., `KF-BurningParis`, not `kf-burningparis`).

Using WebAdmin [#using-webadmin]

WebAdmin is a browser-based admin panel built into Killing Floor 2. It provides a graphical interface for managing your server without needing to be in-game.

<div className="fd-steps">
  <div className="fd-step">
    Enable WebAdmin [#1-enable-webadmin]

    Make sure WebAdmin is enabled in `PCServer-KFGame.ini`:

    ```ini
    [IpDrv.WebServer]
    bEnabled=true
    ListenPort=8080
    ```
  </div>

  <div className="fd-step">
    Restart your server [#2-restart-your-server]

    Restart the server to apply changes.
  </div>

  <div className="fd-step">
    Access WebAdmin [#3-access-webadmin]

    Open your web browser and go to:

    ```
    http://YOUR_SERVER_IP:8080
    ```

    Replace `YOUR_SERVER_IP` with your server's IP address from the XGamingServer panel.
  </div>

  <div className="fd-step">
    Log in [#4-log-in]

    Enter the admin username (default: `Admin`) and the admin password you set in `PCServer-KFGame.ini`.
  </div>
</div>

WebAdmin Features [#webadmin-features]

Once logged in, WebAdmin gives you access to:

* **Current Game** — View the active map, game mode, wave progress, and connected players
* **Change Map** — Switch maps without restarting the server
* **Chat** — Send messages to players
* **Access Policy** — Manage bans and IP restrictions
* **Settings** — Modify server settings in real-time
* **Players** — View, kick, or ban individual players

> 📝 **Note:** WebAdmin runs on port 8080 by default. Make sure this port is accessible by checking the `Network` tab on the XGamingServer panel. If port 8080 isn't available, you can change the `ListenPort` value in the config to match one of your allocated ports.

Security Best Practices [#security-best-practices]

* **Use a strong admin password** — At least 12 characters with mixed case, numbers, and symbols. This password gives full control over your server.
* **Don't share the admin password widely** — Only trusted admins should have it.
* **Use a different password from your server password** — If someone learns your [server join password](/docs/killing-floor-2/set-a-password), they shouldn't automatically get admin access.
* **Change the admin password periodically** — Especially if an admin is removed from your team.

If you get stuck at any time, you can join our [Discord](https://discord.xgamingserver.com/).
