KF2 Dedicated Server Tutorial.

  • Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

wbakunis

FNG / Fresh Meat
Jul 9, 2013
13
0
0
I got the KF2 Dedicated Server installed and running this morning (4/15/15 - 8:30AM EST).

WARNING:
I'm setting this server up blind. I do not have KF2 Beta on steam to actually see if this is public or not. I'm just going off experience with running KF1 servers.

Killing Floor 2 Dedicated Server can be found in Steam's tools list. The download is about 3.3GB(at first download). Download size as of today (4/19/15) is 988mb. This took me about 1 hour to download. Running the dedicated server will not make steam think its' actually running the game like KF1 did.
http://i.imgur.com/gTNyKZo.png

Dedicated Server Folder Directory:
http://i.imgur.com/3DXgjCW.png

  • _CommonRedist contains the c++ redistributable.
  • Binariescontains the main server executable and app extensions (.dll)
  • Enginecontains the game engine files
  • KFGamecontains the game's scripts, maps, webadmin, etc.
  • KF2Serveris a batch file that will start your server.

Setting up the server:

Directly running KF2Server will start a localhost server unless you have the proper ports open. The batch file also includes your admin password. I recommend changing the password to something much stronger. Right click on the batch file and open with notepad++

Code:
start .\Binaries\win64\kfserver kf-bioticslab?adminpassword=xxxxxx

Ports:

I port forwarded on a NetGear n600 (DGN2200v3)

http://i.imgur.com/cAurZzg.png

  • 7777/UDP - MainServer port
  • 20560/UDP
  • 27015/UDP
  • 8080/TCP - WebAdmin

Using WebAdmin:

If you want to use webadmin, you will need to set bEnable to true. Open up PCServer-KFEngine.ini with notepad++ and scroll to line 874. Once this is set to true, start your server with KF2Server and open up a server browser. For me, the link webadmin address is 192.168.0.8 due to me portforwarding to this PC. You can also use your Public IP adress plus the webadmin port :)8080).

To log into the webadmin, you will need to enter the default id & password (admin , password). Make sure you change your password to something stronger. To change your Password, go to Access Policy & Administration Password.

http://i.imgur.com/EAgPR5D.png

Code:
[IPDrv.WebServer]
ApplicationPaths[0]=/ServerAdmin
ApplicationPaths[1]=/images
ListenPort=80
MaxConnections=18
ExpirationSeconds=86400
bEnabled=true

You should now be running a public server. If you have any errors let me know.

http://i.imgur.com/qWQ7yqu.png
 
Last edited:

Amoutsukasa

FNG / Fresh Meat
Jan 3, 2012
58
0
0
KFGame\Config is there where the .ini file is? I changed the line to true but when I launch it's not reading it as true.

** Nevermind figured it out. It's not PCServer-KFEngine.ini It's KFWeb.
 
Last edited:

EPM Cortez

FNG / Fresh Meat
Apr 11, 2015
6
0
0
I got the KF2 Dedicated Server installed and running this morning (4/15/15 - 8:30AM EST).

WARNING:
I'm setting this server up blind. I do not have KF2 Beta on steam to actually see if this is public or not. I'm just going off experience with running KF1 servers.

Killing Floor 2 Dedicated Server can be found in Steam's tools list. The download is about 3.3GB. This took me about 1 hour to download. Running the dedicated server will not make steam think its' actually running the game like KF1 did.
[url]http://i.imgur.com/gTNyKZo.png[/URL]

Dedicated Server Folder Directory:
[url]http://i.imgur.com/3DXgjCW.png[/URL]

  • _CommonRedist contains the c++ redistributable.
  • Binariescontains the main server executable and app extensions (.dll)
  • Enginecontains the game engine files
  • KFGamecontains the game's scripts, maps, webadmin, etc.
  • KF2Serveris a batch file that will start your server.

Setting up the server:

Directly running KF2Server will start a localhost server unless you have the proper ports open. The batch file also includes your admin password. I recommend changing the password to something much stronger. Right click on the batch file and open with notepad++

Code:
start .\Binaries\win64\kfserver kf-bioticslab?adminpassword=xxxxxx
Ports:

I port forwarded on a NetGear n600 (DGN2200v3)

[url]http://i.imgur.com/cAurZzg.png[/URL]

  • 7777/UDP - MainServer port
  • 20560/UDP
  • 27015/UDP
  • 8080/TCP - WebAdmin

Using WebAdmin:

If you want to use webadmin, you will need to set bEnable to true. Open up PCServer-KFEngine.ini with notepad++ and scroll to line 874. Once this is set to true, start your server with KF2Server and open up a server browser. For me, the link webadmin address is 192.168.0.8 due to me portforwarding to this PC. You can also use your Public IP adress plus the webadmin port :)8080).

To log into the webadmin, you will need to enter the default id & password (admin , password). Make sure you change your password to something stronger. To change your Password, go to Access Policy & Administration Password.

[url]http://i.imgur.com/EAgPR5D.png[/URL]

Code:
[IPDrv.WebServer]
ApplicationPaths[0]=/ServerAdmin
ApplicationPaths[1]=/images
ListenPort=80
MaxConnections=18
ExpirationSeconds=86400
bEnabled=true
You should now be running a public server. If you have any errors let me know.

[url]http://i.imgur.com/qWQ7yqu.png[/URL]

Seems the copy i've downloaded is 8GB, are you sure your dedicated package was 3.3GB?
 

chief0

FNG / Fresh Meat
Apr 14, 2015
7
0
0
Do you have the console command to direct connect via IP:port?

Im trying to determine if my server is actually listed online. Ive found the game port and peer port as 7777 and 7778(and changed them to 7778 and 7779) but I have another game running atm that needs 27015 and I cant find in any of the configs that references this port...

Could someone attempt to connect and test? - 24.156.212.187:7778
 

gothroach

FNG / Fresh Meat
Apr 3, 2015
18
0
0
California
Do you have the console command to direct connect via IP:port?

Im trying to determine if my server is actually listed online. Ive found the game port and peer port as 7777 and 7778(and changed them to 7778 and 7779) but I have another game running atm that needs 27015 and I cant find in any of the configs that references this port...

Could someone attempt to connect and test? - 24.156.212.187:7778

If you change the game port, the other ports will change by the same amount.

Easy way to determine the query port: 27015 + ([game port] - 7777).
 

Amoutsukasa

FNG / Fresh Meat
Jan 3, 2012
58
0
0
Do you have the console command to direct connect via IP:port?

Im trying to determine if my server is actually listed online. Ive found the game port and peer port as 7777 and 7778(and changed them to 7778 and 7779) but I have another game running atm that needs 27015 and I cant find in any of the configs that references this port...

Could someone attempt to connect and test? - 24.156.212.187:7778

I read on another page it's "Open (ip)"

And yeah connected fine.
 

Amoutsukasa

FNG / Fresh Meat
Jan 3, 2012
58
0
0
Can't reply for some reason.
*Never mind.

Anyways it's "Open [ip]" without brackets.

And yeah your server is up.
 

Deadbot

FNG / Fresh Meat
Apr 16, 2015
15
0
0
for some reason my server its not listed on server browser to me, but people can join in my server...

any solution?
 

gothroach

FNG / Fresh Meat
Apr 3, 2015
18
0
0
California
for some reason my server its not listed on server browser to me, but people can join in my server...

any solution?

If you're on the same LAN as the server you're running and NAT reflection is not set up on your router you won't be able to see it in the server browser or connect to it using your WAN address. You'll have to add it to favorites using the local IP, then it should work just fine.
 
Last edited:

MBOmnis

Member
Jan 5, 2015
95
7
8
I got the KF2 Dedicated Server installed and running this morning (4/15/15 - 8:30AM EST).

WARNING:
I'm setting this server up blind. I do not have KF2 Beta on steam to actually see if this is public or not. I'm just going off experience with running KF1 servers.

Killing Floor 2 Dedicated Server can be found in Steam's tools list. The download is about 3.3GB(at first download). Download size as of today (4/19/15) is 988mb. This took me about 1 hour to download. Running the dedicated server will not make steam think its' actually running the game like KF1 did.
<a href="http://i.imgur.com/gTNyKZo.png" target="_blank">http://i.imgur.com/gTNyKZo.png

Dedicated Server Folder Directory:
<a href="http://i.imgur.com/3DXgjCW.png" target="_blank">http://i.imgur.com/3DXgjCW.png

  • _CommonRedist contains the c++ redistributable.
  • Binariescontains the main server executable and app extensions (.dll)
  • Enginecontains the game engine files
  • KFGamecontains the game's scripts, maps, webadmin, etc.
  • KF2Serveris a batch file that will start your server.
Setting up the server:

Directly running KF2Server will start a localhost server unless you have the proper ports open. The batch file also includes your admin password. I recommend changing the password to something much stronger. Right click on the batch file and open with notepad++

Code:
start .\Binaries\win64\kfserver kf-bioticslab?adminpassword=xxxxxx

Ports:

I port forwarded on a NetGear n600 (DGN2200v3)

<a href="http://i.imgur.com/cAurZzg.png" target="_blank">http://i.imgur.com/cAurZzg.png

  • 7777/UDP - MainServer port
  • 20560/UDP
  • 27015/UDP
  • 8080/TCP - WebAdmin
I'm being unable to host.
First of all, if I try to run Killing Floor 2 Dedicated Server from Steam, it gives a "missing executable" error.


If I try running it from KF2Server.bat, it apparently initializes without any problems (the log goes up to the message "Initializing Game Engine completed") but then I can't find it on the server browser. I have forwarded the above ports on my D-Link DIR-600 and they seem to be properly open.


I'm going to assume the main issue is with this "missing executable" Steam accuses when I try running the Dedicated Server from it. What can I do? I already verified the cache integrity on both softwares (Dedicated Server and KF2 itself), and it downloaded 800 KB more for the Dedicated Server and another 2.3 GB for the game.


What can I do about this? I really want to be able to host my own server for me and some buddies.


EDIT: I see your server image lists the final line as "Steam Game Server UID:", and that is not the case when I try to run a server. What gives?


EDIT2: I deleted and then installed the Dedicated Server again. I ran it and the server opened up normally, as it seemed, since I got up to the "Steam Game Server UID:" line. But then I couldn't run KF2!
I verified KF2's integrity cache, had to download 2.3 GBs of files again, and after that I could run KF2... but the Dedicated Server doesn't get up to that least "Steam Game Server UID" line when I run KF2Server.bat. Seems like it's an either/or situation, and I'm stumped.


EDIT3: Nevermind the second edit. The server is up and running, and I was able to spot it in my LAN tab. However, it doesn't seem to be public, and I can't access the web admin (I did forward the 8080 TCP port).
 
Last edited:

Rock_Steady

FNG / Fresh Meat
Apr 22, 2015
1
0
0
Ok, we can't figure out how to change the game lengths in the server settings. We want to play a game with more than 7 waves, is there a configuration line i am overlooking? or is there a line i can add to make the games have 10 waves? plz halp
 

tfrengler

FNG / Fresh Meat
Jul 14, 2011
6
0
0
The Twisting Netherlands
Ok, we can't figure out how to change the game lengths in the server settings. We want to play a game with more than 7 waves, is there a configuration line i am overlooking? or is there a line i can add to make the games have 10 waves? plz halp

Don't have the files on hand right now but reasonably sure the setting is in PCServer-KFGame.ini under [Engine.GameInfo]. It's called Length or Gamelength or some such.
 

tijolol

FNG / Fresh Meat
Jun 12, 2014
256
0
0
Ok, we can't figure out how to change the game lengths in the server settings. We want to play a game with more than 7 waves, is there a configuration line i am overlooking? or is there a line i can add to make the games have 10 waves? plz halp

There are 3 ways i know of to do this:
1- In the .bat that launches your server add "?GameLength=2" without quotes, with "?". (length 0, 1 and 2 stands for 4, 7 and 10 waves respectively).
2- In the webadmin interface. If you've enabled it just connect to your ip:8080 on the browser. If you haven't changed anything default admin login and password are "admin" and "123".
3- Search in the .ini's of the server (not the default ones, never the default ones) for "GameLength" under the correct game type.