Team Fortress 2

Team Fortress 2

198 ratings
How to make your own TF2 Server
By Metal Candyfloss
This guide is for people looking to make their own tf2 servers. I made a few videos after the SteamPipe update happened, so I'm posting them here so hopefully people can benefit or find the information easier!
Creating a server with SteamPipe
Below is the guide I have made to help people make their own tf2 servers. It should be relatively easy to transfer this to other games like CS:GO and Left 4 Dead 2 as they transition over to SteamPipe.

Here is how to do it in those word things:

1. Go to {LINK REMOVED} which is the page from which you can download the SteamCMD, which is now used instead of the hldsupdatetool for updating your servers. It works in pretty much the same way, so if you have made any servers before, it should feel quite familiar.

2. In my tutorial I made two seperate folders in the C: drive for the SteamCMD and TF2Server. You can do that as well or do it your own way. If you are following along with what I am doing place your SteamCMD.exe into the C:/SteamCMD folder you have created and run it. This will make all the necessary sub-folders and files.

The prompt will now have come up for the SteamCMD so you can use it to install your game server, however I have chosen a different method than loading this up every time so that updating servers is more automated. So close that SteamCMD dagnabit!

3. Now that the SteamCMD files have been installed, you can begin automating installation and updating. Go into your C:/tfserver you have just created and make a update.bat file...

3 - Episode 2. If you don't know how to make a .bat file, right click in the folder's empty space and click on New -> Text Document, then change the name to update.bat. You may need to enable file extensions to change it to a .bat file instead of a .txt

3 - Episode 2 - Delta Pi. To enable file extensions, go to tools under Windows Explorer (I have no idea about Linux or Mac, leave me alone) and folder options. Under the view tab there is an option to "Hide extensions for known file types". That is disgusting and we don't want that, so untick it and hit Ok.

3. Now right click on this file and click Edit. This should come up in a normal text editor. As long as you are setting up your folders like I am either in the video or this text guide you can put in the below script to update the server.

c:/steamcmd/steamcmd.exe +login anonymous +force_install_dir c:/tfserver +app_update 232250 validate +quit

This will login into the SteamCMD anonymously (you don't need to use your steam account, since the dedicated server runs completely externally to your steam client) and will install the app with the id of 232250 in the SteamCMD database. Yes I know it's 440 on steam, but things are different down here.

The validate command will check each file is in place before trying to quit the run. Finally the pause allows you to check everything worked fine before closing the cmd.

Run that .bat!

4. Yay (probably)! Your TF2 server is installing! Now to setup another .bat which runs the server instead of just updating it. Let's name this one tf.bat and below is the script for it:

c:\tfserver\srcds.exe -console -game tf -port 27015 +maxplayers 32 +map ctf_doublecross //Did you know CP jumped the shark?

This script runs the server from port 27015 (default for Source games) with a max player count of 32 on the map Doublecross on the Capture the Flag gamemode. You can edit this as you like :D

4 - DLC 7. If you want your server to run over the internet you will need to port forward the 27015 port through your modem or router. I can't go into specifics here very easily, since this varies greatly between your different service providers. Trying going to the interwebs and finding the information you need!

5. Has your server nearly downloaded yet? TF2 is a big game now (still needs more hats) so it's going to take a while to download. We probably should make a server.cfg though, which you can configure to your server however you want!

Instead of putting the whole thing here, I 'borrowed' this one from someone (tee hee) and uploaded it to a pastebin. You will have to create this server.cfg under the /tfserver/tf/cfg folder in a similar way to the .bats. I recommend you plonk all the commands down and change them as you see fit. There are a lot of commands you can change in tf2 or any source game, so make sure to look through them!

Pastebin: NOM NOM NOM[]

I would specifically recommend changing the rcon password though, so people don't just come on the server and start messing around with it :(

6. Hopefully at this point your server has fully downloaded and hitting that tf.bat will launch the server. Now that you finally have your server up, it's time to start getting people onto it. On the server command prompt, there will be a line saying

"Public IP is... "

This is the IP other people will need to connect to your server. It will appear in their server browser under the Internet tab, although you need to connect using a local IP. You can locate and join the server under the LAN tab in the tf2 server browser!

Share out that public IP, get people to add it to their favourites and get them on the server.

7. So you are on the server.

Play Video Games!
Server Setup FAQs (WIP)
This is going to be changing as people find more problems. So yay!

1. SteamCMD.exe crashes when I try to load it! Only creates a package folder!

SteamCMD and a lot of other programs steal their settings from Internet Explorer (which steals it from the control panel (which steals it from the matrix)), because they are all so classy. Usually a fix for this is going to the settings in IE, under the connections tab and going on to your LAN settings. Then you should tick "Automatically detect settings" and hit OK. This will make your Proxy automatic.

If this doesn't solve the problem I would suggest trying to run the steamCMD as an admin, or even lowering your security setting in the IE options. Also make sure that your firewall isn't blocking the SteamCMD from running.

2. How do I port forward?

You are always going to need to port forward, but with so many different service providers, routers and modems out there, it just isn't viable for me to list all of their methods here (plz forgive me). I'd recommend you go look up some tutorial for your specific router, by using this wonderful thing called The Internet[].

Make sure you port forward 27015, which is what all the cool kids use for their Source MP games!
< >
(Spiral Squidbucklers) MasterMii Dec 31, 2015 @ 10:52pm 
can you also use logmein hamachi?
Brando Mar 11, 2015 @ 6:18pm 
The link is broken i gonna give the link [{LINK REMOVED}]here[/url]
Ash Jan 22, 2014 @ 1:20pm 
Help server done tags done people can join with connect IP but nobody see the server in search browser of server - i got sv_pure 1 and some friend got drop but i cant see server even after tags added please Yelp!!!!
larssnuf Dec 23, 2013 @ 7:23pm 
getshrekt gunnermech
ZeUber#nutdyin'aneetymsun Oct 12, 2013 @ 8:55am 
And The Other things,I hate Waiting at the update.bat part -.-
ZeUber#nutdyin'aneetymsun Oct 12, 2013 @ 8:52am 
@オタクキルリア That mean you need the Local IP so people can join your server (i copy paste your name :D)
ZeUber#nutdyin'aneetymsun Oct 12, 2013 @ 8:44am 
help me....i cant find my TP-Link Router,My router is TL-SF1008D
Arctic Aug 5, 2013 @ 8:56am 
Damn it. I'll have to port foward for this. And My Internet is set differently than most.
larssnuf Jul 16, 2013 @ 2:53pm 
Sir Sean | Jul 16, 2013 @ 8:54am 
I made my server on one computer in which others can connect to but me on my laptop can't seem too