Team Fortress 2

Team Fortress 2

Not enough ratings
How to create your own dedicated server in few minutes
By -=|Markus|=-
   
Award
Favorite
Favorited
Unfavorite
Step by step
Download SteamCMD for your OS
^the link above is for Windows users
- extract it. ( for example under C:\Server\ )
- do the few important steps listed here

For windows users:
  • doubleclick on the steamcmd.exe ( in the folder where to which you extracted it )
    • Type in these lines:
    • login anonymous
    • force_install_dir ./Team_Fortress2/
    • app_update 232250 validate
      (in case you are isntalling tf2 - the app ID should have been 440.. but somewhy it is 232250)

    When you are done with this, download the following files:
    http://www.sourcemod.net/snapshots.php/
    http://www.sourcemm.net/
    ..and extract them to your ~/Server/Team_Fortress2/tf/ folder.

    Router
    [Optional] - you need this step if you'd like others to be able to join you.

    Set the ports, OR enable DMZ on your router (remember - NOT BOTH!)
    In my case I had to type 192.168.1.254 to my web browser to reach my router settings.
    Then you need the set up a TCP port with a range from 27000-28000.
    your routers GUI might look different, but I have highlighted what you need to set up.

    Launching the server
    Open the start menu, type in command.com and hit enter.
    Copy the following command: C:\Server\Team_Fortress2\srcds.exe -console -game tf +map itemtest
    To paste it press alt+space it will bring up a bar. Go Edit -> Paste
    Hit Enter.

    Congratulations!
    Your server is running.


    If you'd like to automatise this process:

    - Create .bat file to your Desktop for exapmple. Open it with Notepad++ and add this line:
    C:\Server\Team_Fortress2\srcds.exe -console -game tf +sv_pure 1 +map koth_nucleus +maxplayers 12

    ( OR if this is easier for you: create a myserver.txt for example. Enter the line above, save it, and then change the .txt extension to .bat
    - If the .txt does not show up after the filename, then go to your Control Panel - Folder Options - View (tab) - and take out the tick from Hide extensions for known file types )

    - You can also set up your server config:
    To do so, download this {LINK REMOVED} and put it into your C:\Server\tf2\tf\cfg folder.
    Of course you can edit your server.cfg according your taste.


    To add plugins go to:
    http://sourcemod.net/plugins.php?cat=0&mod=5&title=&author=&description=&search=1
    Download the ones you like, and copy them to your:
    C:\Server\Team_Fortress2\tf\addons\sourcemod\plugins folder.

    Commands
    There are some server and some client sided commands that you might need.

    Server sided should be pasted to your CMD
    (where you pasted the "C:\Server\Team_Fortress2\srcds.exe -console -game tf +map itemtest" OR to the myserver.bat if you automatised this process)

    -Most used commands are probably:
    sv_password "yourpassword" ( if you for some reason the server doesn't allow you to join, you can delete the password with this command: sv_password "" )
    kick "playername" (kicks the player from your server)
    sm_map "mapname" (changes map, for example sm_map koth_nucleus)
    sm plugins list (will show you your isntalled plugins in the CMD)
    mp_disable_respawn_times 1 (will make you respawn immedately)
    sv_cheats 1 ( you know what it does :)

    https://wiki.teamfortress.com/wiki/Cheats

    https://wiki.teamfortress.com/wiki/List_of_useful_console_commands



    P.S:

    IKR that command.com appears here as a link, but its not. Sorry I tryed to format it.. but there is no way for steam to not highlight stuff ending with .com

    I've already made a similar guide about an year ago, but since Valve changed sv_pure requirements few months ago ( it was related to the game_items.txt glitching - whereas there were critical issues - thats how unusual burning flames Max's Head came into being.. as a reward to a player who revealed it to Valve before exploiting it ). Anyhow; as these changes were made you can no longer make a sever from in-game that others would be able to join you - no matter if DMZ is on.
    Thats why you need to make a dedicated server, if you wish so.





45 Comments
-=|Markus|=-  [author] 14 Oct, 2015 @ 7:09am 
idk dude it should work, it works for me, I did it recently all the steps and works. dont change anything at WAN. if you wish disable the port forwarding and enably only DMZ
Anyar 14 Oct, 2015 @ 4:02am 
Hello...anybody...
Anyar 10 Oct, 2015 @ 7:39am 
Oh wait...is the WAN port range supposed to be the same as the LAN port range (27000-28000)?
Anyar 1 Oct, 2015 @ 9:26pm 
In the srcds.exe thing, it says my IP is 192.168.2.10:27015, but there are no servers in LAN, and I can't add my server to favorites using 192.168.2.10:27015 or using the ip from cmyip.com . None of them work. I just...can't find my server.
-=|Markus|=-  [author] 1 Oct, 2015 @ 10:05am 
Anyar 28 Apr, 2015 @ 5:29am 
Oh ok, thank you!!
Apparently all I need to do is remove my firewall (which I can't do).
Thanks!!!!
-=|Markus|=-  [author] 28 Apr, 2015 @ 2:00am 
Usually routers (here in my country - for t-home users) is 192.168.1.254
When you log in, you use your IPv4 address to the port forwarding.
Anyar 27 Apr, 2015 @ 4:27am 
Hello!!
Just one last question...
Let's say I type in 192.168.2.5 to reach my router settings.
When port forwarding, do I use the same IP as my LAN IP address??
Thanks!!!!!!!
Anyar 15 Mar, 2015 @ 4:24am 
I have the plugins, I know how to use commands, I added myself as an admin :P, pretty much everything is working fine except that nobody else can join. Apparently it's still a LAN server
Anyar 15 Mar, 2015 @ 3:49am 
I decided to try DMZ instead, so I disabled the port forwarding. All I need is an IP Address, so I just use the one printed in the server console, right?