How to Set a Password on Your Killing Floor 2 Server
Learn how to password protect your Killing Floor 2 server for private sessions and restricted access.
Setting a server password restricts access to only players who know the password. This is useful for private sessions with friends, community events, or any situation where you want to control exactly who can join your Killing Floor 2 server.
Setting Your Server Password
Open the XGamingServer panel
Log in to the XGamingServer panel and stop your Killing Floor 2 server.
Navigate to the config file
In the sidebar, go to Files and navigate to KFGame > Config. Open PCServer-KFGame.ini.
Set the game password
Find the [Engine.AccessControl] section and set the GamePassword value:
[Engine.AccessControl]
GamePassword=YourServerPasswordSave and restart
Click Save and start your server.
Players will now be prompted to enter the password when they try to join from the server browser or via direct connect.
How Password Protection Works
- Server browser — Your server still appears in the server browser, but with a lock icon indicating it requires a password. Players can see your server name, player count, and map, but can't join without the password.
- Direct connect — Players connecting via the console command can include the password:
open 198.137.23.46:7777?password=YourServerPassword - Sharing the password — Share your server password with your group through Discord, your community website, or private messages. Avoid putting the password in your server name.
Removing the Password
Stop your server
Stop your server from the XGamingServer panel.
Clear the password
Open PCServer-KFGame.ini, find the [Engine.AccessControl] section, and clear the GamePassword field:
GamePassword=Save and restart
Click Save and start your server.
Your server will now be open to anyone without requiring a password.
Setting a Password via Admin Command
If you have admin access, you can set or remove the password while the server is running:
Admin SetGamePassword NewPasswordTo remove the password:
Admin ClearGamePassword📝 Note: Passwords set via admin commands are temporary — they'll revert to whatever is in
PCServer-KFGame.iniwhen the server restarts. For permanent changes, update the config file.
Server Password vs. Admin Password
Killing Floor 2 has two separate passwords that control different things:
| Password | Purpose | Config Setting |
|---|---|---|
| Game Password | Controls who can join the server | GamePassword in [Engine.AccessControl] |
| Admin Password | Controls who can manage the server (kick, ban, WebAdmin) | AdminPassword in [Engine.AccessControl] |
These are completely independent — you can have one, both, or neither. Setting a game password doesn't affect admin access, and vice versa.
💡 Tip: For organized events, set the server password before the event starts and share it with participants. Change it afterward to prevent uninvited players from joining during your next session.
If you get stuck at any time, you can join our Discord.
How is this guide?
