Killing Floor 2

Killing Floor 2

View Stats:
This topic has been locked
Bruxo Apr 23, 2015 @ 10:14pm
TUTORIAL !!! HOW TO HOST KF2 SERVER
KF 2 did everything fine!

Except for hosting games. Not enought server's to play with your friends.


I'm here to explain how to create a DEDICATED SERVER FOR KF 2.

Seriously, this is EASY PEASY LEMON SQUEZY. Just follow steps one by one and have fun.

*NOTE*¹


On the END of the post you'll find common issues with servers and how to fix them.


*NOTE*¹

___________________________________________________________________________

*NOTE*

I usually have to open ports on my modem, for hosting something.

I didn't for that, i just did those steps right there and everything is Working.

I RECOMMEND TO SKIP THIS PART AND GO FOR STEP 1.


IF doesn't works AND you need to open your ports, here what you need:

7777 UDP
27015 UDP
8080 TCP
20560 UDP

Open all ports for UPD AND TCP, and you should be fine.

I have 30 mb of download and 3 mb of UPLOAD. Everyone get's 60-70 of ping. If is "international" player, gets 120-140 ping.

*NOTE*

************EDIT**************

For beta servers, check beta instructions on step 5.


STEP 1:

Download steamCMD.exe

http://media.steampowered.com/installer/steamcmd.zip

( you need it for download the "dedicated server" files for kf 2, you'll use it only to download the server files once, that's no reason to run this or keep it running after that. You will need this to UPDATE the server, if kf 2 recieve any updates. Keep that in mind.)

Step 2:

Execute steam cmd.

This step will trigger automatic update, and will download the cmd files to current folder.

( do not open on desktop, if you want to keep on desktop just create a folder and put it inside. You dont want 40 files on your desktop.)

After update is done, exit the program and go to next step.

Step 3:

Open it again, and type:

Login anonymous

Wait for steam connection. Once connected, go for next step.

Step 4: ( OPTIONAL)

*If you dont want to choose the folder and let it inside steam.cmd folder, just skip this step.*

Type this command line: "force_install_dir " plus directory you want to kf 2 server will be downloaded.

For exemple: force_install_dir c:\KF2Server\

The program will "lock on" the directory.


NEEEEXT STEEEP

Step 5:

Type this command line: "app_update 232130" to DOWLOAD the KF 2 Server files.

Once download is finished, close the CMD. You won't need him again until they update the game.


IMPORTANT


To update your kf 2 server to currently patch, just type:

force_install_dir *your kf 2 server directory* ( if you don't choose the path, just skip directly for the command_line for update)

and

app_update 232130 validate

The cmd will verify the files and download the update when finished.

To update your server to BETA patch, you just need to add the beta "code" on the end.

For example, i want to host my server for playing the new beta patch ( Firebug and Demo)

I'll type this command line:

app_update 232130 -beta preview

With this command, you can update to recent beta. Enjoy.


NEEEEXT STEP

Step 6:

Now, you downloaded all the files you need. You'll just config the server. Nothing more.

Execute your server first time, for default configurations appears.

just go for your kf2server folder and execute : KF2Server.bat

( I really recommend to create an shortcut for desktop, for easy acess.)

Wait until he loads the map, will take some time on the first time. When the server is done and executing, this thing will appears on KF2Server.bat window:

"
KF2 Version XXXXX
Initializing game engine completed.

STEAM GAME SERVER UID XXXXXXXXX

"

This last one: "STEAM GAME SERVER UID" Indicates that your server is working and communicating with steam servers just fine.

If this don't appears try to execute again.

If is not working yet, get back to CMD and try to verify the kf2 server files with the command line: "app_update 232130 validate"

This will repair any missing files or missing patchs.



Now, try to join on "LAN" servers on your browser and wait a little for some one connects if you want to test. or invite a friend to play.
( it's really fast to some one join, if takes more then 5 minutes something is wrong. )

Congrats, your server is running. I'll teach you to config the server right now.

If you did everything right, should work. CHECK your firewall and anti-virus programs, make sure nothing is blocking the server to works.

After you joing the game and test, close it and close KF2server.bat window for config the server on next step.

Step 7:

WEBADMIN.


Here you can control everything. Kick, ban, password, maps and difficulty of your server.


You just need your IPV4.


Go to WINDOWS cmd and type ipconfig


Copy your IPV4 and go to your browser.

Now, just add :8080 on the end of it and try to acess.

Should look like this : http://192.168.25.22:8080/

LOGIN admin
PASSWORD 123


Have fun.


NOTE: This can ONLY be used if the server is running.


Step 8: OPTIONAL


You will ONLY need this if you CANT acess the webadmin.

Webadmin is much better.


Go to KF 2 Server folder, and go to>KFGame>Config

And open this file on TXT

PCServer-KFGame.ini

You'll reach the games config, i'll put here the lines and what it does.


GameDifficulty= change the difficulty of the game. 0 for normal, 1 for hard, 2 for suicidal and 3 for HoE.

GamePassword= Set the password to join the server

GameLength= Set the number of waves, 0 for 4 waves, 1 for 7 waves, 2 for 10 waves.




------------------------------------------------------------COMMON ISSUES------------------------------------------------

-STEAM UID line is not appearing on server note.

> First of all, this represent your server ID on STEAM servers. So, this will appear everytime when the server is working and sending info to steam. Try Close the game before running the server, Open your ports or make an exception for KF servers on firewall or anti-virus.

-HOW TO OPEN DMZ?

>To config DMZ, you'll need to find out your IP adress.( the local one)

Go to CMD, type : ipconfig

Copy the IPV4 Adress into DMZ.

Save and restart the modem.


- Can't acess WEBADMIN

>Go to your server files, one special line is about enable WEBADMIN.

Try to check it.

-I Can see the server but friends can't join and neither appears on serverbrowser.

> Probably Bad DMZ configuration or port fowarding.


- KF 2 server won't download on steamCMD

> Try to put it on another disk or folder. Execute on ADMIN mode.




END

========___________________===========__________________________========


that's all you need to config the basis of server. I wont put here Advanced config's cuz you dont need it.

Every time you want to host, open the kf2server.bat and have fun. Remember to update the server everytime the game recieve a patch, and saying the obvius, do not close the KF2server.bat when you are hosting! THANKS CPT OBVIUS.

You're done here!!

Wtf, are you still here? GO PLAY KF2 WITH FRIENDSS!!! 10/10 GOTY
Last edited by Bruxo; Sep 8, 2015 @ 5:45pm
< >
Showing 286-300 of 652 comments
Doctor Hue Jan 12, 2016 @ 12:53am 
The server files are 7.3GB and you'll need around 700mb RAM per server.
http://i.imgur.com/bRMsKeF.png
S4taN Jan 12, 2016 @ 12:58am 
Originally posted by Doctor Hue:
The server files are 7.3GB and you'll need around 700mb RAM per server.
http://i.imgur.com/bRMsKeF.png
Right on thanks
S4taN Jan 12, 2016 @ 4:06am 
I list my server under LAN but not Internet any ideas?
Doctor Hue Jan 12, 2016 @ 4:13am 
That's pretty normal unless your router has address loopback feature.
You join the game using your own PC's IP address (192.168.x.x) while the others will use your public IP instead. As long as your server gets an UID and people joining your server fine, there's no need to worry about the LAN/Internet thing.
Last edited by Doctor Hue; Jan 12, 2016 @ 4:23am
S4taN Jan 12, 2016 @ 4:38am 
Originally posted by Doctor Hue:
That's pretty normal unless your router has address loopback feature.
You join the game using your own PC's IP address (192.168.x.x) while the others will use your public IP instead. As long as your server gets an UID and people joining your server fine, there's no need to worry about the LAN/Internet thing.
Well my friend can't join but I have access to WebAdmin by using my public IP. Not sure what's missing.
Moonly Jan 12, 2016 @ 4:49am 
You can't access your WebAdmin using your public IP unless you're using a dynDNS type of service. Are you sure you're typing your public IP, not a "192.168.x.x" type of IP ? If nobody can see and join your server outside your LAN, it's probably a port forwarding issue. Check your router/ISP modem for that.
S4taN Jan 12, 2016 @ 5:09am 
I can access to WebAdmin by using public or local IP. Problem is fixed once I forwarded these ports with not only UDP but UDP+TCP mode. Weird but it worked. Except 8080 though, it's only web interface and only TCP for it seems enough.

Now my only concern is how can I configure a ping filter, people with 300+ pings are joining lol
Last edited by S4taN; Jan 12, 2016 @ 5:11am
Vlad Jan 12, 2016 @ 5:13am 
Originally posted by Moonly:
You can't access your WebAdmin using your public IP unless you're using a dynDNS type of service.
Why? :O
Moonly Jan 12, 2016 @ 5:29am 
WTF did I wrote. Of course it's false... you can acees the server if you know the actual IP. Sorry for this mistake. Nevertheless, a dynDNS is so useful. No-ip works great for that, and is free. :)
Last edited by Moonly; Jan 12, 2016 @ 5:30am
S4taN Jan 13, 2016 @ 9:36am 
anybody using No-Ip and willing to help me out? My IP is dynamic it's changing every once in a while so how do I make the server permanent by using No-Ip. Currently I installed it and I'm able to access webadmin trough free No-IP url.
What's next? How do people figure out what IP it's on?
This tutorial was really good. I was able to get everything working but webadmin. I can't access my damn router no matter what I try. Great guide.
Pingus III Jan 13, 2016 @ 3:04pm 
Originally posted by S4taN:
anybody using No-Ip and willing to help me out? My IP is dynamic it's changing every once in a while so how do I make the server permanent by using No-Ip. Currently I installed it and I'm able to access webadmin trough free No-IP url.
What's next? How do people figure out what IP it's on?
I think I understand your problem, but I'm not quite sure if I'm right. From what I can interpret, you're LOCAL IP is dynamic and costantly changes so you're using that "No-Ip" thing as a fix. I'm not an expert, so my help is going to be limited, but if you do have a dynamic IP, try to set a static one for your computer.

If you happen to use a Linksys router like me, well you're in luck. They use a thing called a DHCP reservation which reserves a local IP for your computer, phone, toaster with internet, etc. First get into Linksys Smart Wifi. Second, click on Connectivity and then Local Network. From here you can set up your DHCP Reservation by clicking DHCP Reservations, and then adding a DHCP Reservation either manually, which requires the MAC Address of your device, or the normal way where you find your device on the list, click add DHCP Reservation, and then click save and use the Assigned IP adress to host your server.

Yep, that was pretty AIDS lol.
You can set a static IP on your computer automatically with the free software available at portforward. When I changed it, I couldn't get online any longer, so I switched it back to dynamic.
S4taN Jan 14, 2016 @ 3:11am 
Okay I figured out guys thanks for replies. My local IP is already static. My public IP however is assigned by ISP that's dynamic. I guess I have to call them to give me static IP. BUT no need thanks to No-Ip.com.
Server is listed in server browser and regardless of what my IP is people can connect with this command, it's especially useful for dynamic IP servers:
ivorsemion Jan 14, 2016 @ 4:39am 
Hi, i've created a server & opened the ports. My friends can see the server in the list but when they enter the password nothing happens - it just returns to the list. There is nothing in the server log to say that they've attempted to join either.
Any help would be appreciated!
< >
Showing 286-300 of 652 comments
Per page: 1530 50

Date Posted: Apr 23, 2015 @ 10:14pm
Posts: 652