Killing Floor 2

Killing Floor 2

34 ratings
Killing Floor 2 Dedicated Server (SteamCMD) [English/Englisch] [Windows]
By Zeromix
This guide will show you how to set up a server with the SteamCMD.

The following ports must be open:
UDP 7777 Server Port UDP 27015 Master Server Port TCP 8080 Web Admin UDP 20560 Steam Port

You´ll need at least 31 GB disk space!

German version:
http://steamproxy.net/sharedfiles/filedetails/?id=775342119

I also created a tool, that automates the installation process. You can find this tool here:
https://steamproxy.net/groups/ServerTool
   
Award
Favorite
Favorited
Unfavorite
SteamCMD Download
First of all you need the SteamCMD. You can download it here:
https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip
SteamCMD Login
Extract the file in a folder.
Now you need to execute this file.
After a few secounds you should be able to login.
login anonymous
Server Files Download
Now you need to enter the following in the console:
force_install_dir ./kf2_ds/

Now you can start the download with:
app_update 232130 validate

If the download was sucessful, you have to type
exit
in the console close the SteamCMD.
Run the Server
In your "kf2_ds" folder you will find a batch file.
With this batch file we will work later.

Currently you can find there the start map and the admin password.
At this moment, this is a survival server, not versus!

You can close the server, simply with a click at "X"
Server Config
You can configurate the server, if you edit the "DefaultGame.ini" file, which you can be found here:
\kf2_ds\KFGame\Config

You can change the difficulty:
[Engine.GameInfo] GameDifficulty=0.000000

Which number stands for which difficulty:
0 = Normal 1 = Hard 2 = Suicide 3 = Hell on Earth

If you scroll down, you will find
[KFGame.KFGameInfo]
There you will be able to change the MOTD etc.

To change the gamemode in survival, you need to edit the batch file.
?Game=KFGameContent.KFGameInfo_VersusSurvival

You can change the servername in your "PCServer-KFGame.ini" file.
You will find there these lines:
ServerName= ShortName=

Just edit them the way you want it. :)
Web Admin
You need to activate it first.
Go to
C:\Steam-Server\kf2_ds\KFGame\Config
and open the file "DefaultWeb.ini"

Now go to
bEnabled=false
and set it to
bEnabled=true

Now u can get Web Access, u just need to type the IP and the Web Admin port.
E.G. 127.0.0.1:8080

Default Logging:
Username: "admin"
Password: "123" [You can change this in the batch file.]
Steam Workshop
Go to the folder
\kf2_ds\KFGame\Config
and open the file ""PCServer-KFEngine.ini"

Now scroll down, until you find the following code:
[OnlineSubsystemSteamworks.OnlineSubsystemSteamworks] bUseVAC=true GameDir=kf2 ProductName=kf2 GameVersion=0.1.0.0 Region=255 CurrentNotificationPosition=NNP_TopRight bTestSteamAuthDenials=false ServerBrowserTimeout=60.0 VOIPVolumeMultiplier=1.5 ProfileDataDirectory=..\..\KFGame\SaveData ProfileDataExtention=PFD

Under this, you make a line break and put in your mods:
[OnlineSubsystemSteamworks.KFWorkshopSteamworks] ServerSubscribedWorkshopItems=605633924 ServerSubscribedWorkshopItems=605551918

For every wokshop item, you will need a new line.

Where can i get the ID from?
It´s the end, of every link!
E.g.: http://steamproxy.net/sharedfiles/filedetails/?id=535769647
Frequently Asked Questions
I can not see my server / No one can connect to my server
Please make sure, that you have opened all the required ports in your router. If the everything is set correctly, but the problem still occurs, please contact your internet provider.
Or look for your router model here:
https://portforward.com/router.htm

Is there another way instead of opening the ports?
Yes, you can also host your server through a VPN network like "Hamachi". Of course only the people in the VPN network will be able to join the server then.
If forwarding your ports doesn´t work, please contact your ISP, i won´t be able to help you.

How can i change my server port?
Just edit the bat file with "-port 27015"

The SteamCMD download failed! What should I do now?
Mostly you just need to retry the download, then the problem should be fixed.

How do I update my server?
Just open the SteamCMD and login again, then retry the Step "Downloading the files" it will be checked which files need to be updated.
Server Creation Tool
To automate these steps to setup/upgrade a server, i created a tool, the group can be founde here:
http://steamproxy.net/groups/ServerTool

The tool itself is hosted on Github, which can be found here:
https://github.com/Zeromix9/ServerTool

I hope, that will help you in the future!

If you like, you are also welcome to leave a small donation.
https://paypal.me/Zeromix
41 Comments
Zeromix  [author] 16 Feb @ 10:34pm 
@1-888-DIC-DASH 🍆Glad you found it out. - Wanted to test it the next day by myself.
shan 16 Feb @ 9:23pm 
Figured it out - looks like port 8080 was being used by another application

I changed the port to a different number under the config file and it seems to work now
shan 16 Feb @ 11:01am 
Hi, I just got an error trying to open up the Web Admin; i double checked the admin port 8080 and enabling web admin under the KFWeb.ini file


Access Error: 404 -- Not Found
Cannot locate document: /
LnDest 4 Dec, 2023 @ 4:46am 
@Zeromix
Yes, but only if via WebAdmin
Zeromix  [author] 4 Dec, 2023 @ 3:53am 
@LnDest So downloads are triggered normally by just changing the map?
LnDest 4 Dec, 2023 @ 1:08am 
@Zeromix
I figured it out, it downloads the workshop content to the server ONLY when changing the card via WebAdmin
Zeromix  [author] 3 Dec, 2023 @ 8:14pm 
@LnDest Dunno didn´t used KF2 in a LOOONG time, need to test that.
Downloading the game will take a while...
LnDest 3 Dec, 2023 @ 7:06pm 
**Warning: Warning, Workshop: Attempting to check if item 2896479529 is installed without having downloaded it.**
To this day they have not fixed it on the windows servers that the workshop does not download maps, weapons or mutators, maybe someone knows how to fix this? or wait another 6 years until they remember about custom servers?
Harvi Blutfaust 27 Jun, 2018 @ 6:18am 
Sehr guter Guide, Alles ausführlich beschrieben & ist nicht zuuu Kompliziert :)!
TOP!
Zeromix  [author] 30 Oct, 2017 @ 6:41am 
@६ΦĨ₦ ℒᎽȵℵǝ I´m using this folder with C:\Steam-Server\Servername because it´s kinda sorted then, where u save it, is your own choice.

And if u wanna find out, if your server is running in the internet:
Go to: https://www.whatismyip.com/ copy this ip, that´s your internet ip.
Then connect to this ip, via console, adding this server to your favorites, however.