- Joined
- Sep 3, 2008
- Messages
- 2,421
I'm going to show you how to set up your own Team Fortress 2 Dedicated Server.
Using the remote console
Setting up admin via SourceMod
Making server available to other people
Thanks to Team Fortress Wiki for providing me with the server.cfg
- Open up your Steam account and install Source Multiplayer Dedicated Server. It's under the Tools tab.
- Start Team Fortress 2 Dedicated Server and under the game list select Team Fortress 2. Don't forget to put the RCON Password, it doesn't have to be anything complex. Once the server starts, close it.
- Go to your server root directory (Default: Steam\steamapps\<your username>\source 2007 dedicated server\tf)
- To get things running smoothly, we need to get a nice copy of server.cfg. Download it and put it in the root\cfg. Yep, you guessed it. You have to create the cfg folder.
- You don't want your server to be just another yourserver.com TF2 Server. Let's change that in your brand new server.cfg!
Server name
Code:// Hostname for server. hostname yourserver.com TF2 Server
Number of players
Code:// Overrides the max players reported to prospective clients sv_visiblemaxplayers 24
Contact address
Code:// Contact email for server sysop sv_contact [email protected]
Region
Code:// The region of the world to report this server in. // -1 is the world, 0 is USA east coast, 1 is USA west coast // 2 south america, 3 europe, 4 asia, 5 australia, 6 middle east, 7 africa sv_region 0
RCON Password
Code:// Password for rcon authentication rcon_password yourpw
- If you are actually going to join the server, you will have to change your game ports by going to My Games tab in your Steam account, then right clicking on Team Fortress 2 and going to Properties --> Set launch options. All you have to add is this:
Code:+port 27016 +tv_port 27021
- Go to your server root directory, create steam_appid.txt and inside that file write 440
- Once again, run Team Fortress 2 Dedicated Server and start up the server. How do you expect to join the server if it's not running?
- Great! Now you can start Team Fortress 2 and join the server as if you were joining any other LAN game. You will see your server in the server browser under the LAN tab.
Using the remote console
- Once you are connected to the server, type rcon_password <password> in the console to gain access to RCON.
- You can now use rcon <command> to send a command to the server.
Setting up admin via SourceMod
- So, you want to have admin access on your server? We'll be using SourceMod because it's so powerful. SourceMod also requires Metamod to run properly.
- Download the latest Metamod and extract the zip to the server's root folder. You should get the following structure: root\addons\metamod
- In order for plugin to load on the server, download this VDF file and place it in the root/addons folder.
- Download the latest SourceMod and extract the zip to the server's root folder. You should get the following structure: root\addons\sourcemod and root\cfg\sourcemod
- Next thing we have to do is getting you the root status on your server. You can do this by editing root\addons\sourcemod\configs\admins_simple.ini. At the end of the file add a line like this:
Code:"STEAM_0:1:123" "z"
- This will give you full admin powers. If you don't know your Steam ID, visit the MAUL Page.
- For actions to take effect, restart your Team Fortress 2 Dedicated Server. Simply close it and start it again.
- To access the admin menu in game, type sm_admin in the console.
Making server available to other people
- A server isn't a server if other people can't join. Let's be quick about it.
- If you don't know how to forward ports. I suggest you take a look at PortForward.com
- You need to forward the following port:
- 27015 as TCP and UDP
- Well, you're just about done. The final step is to find out your IP address, so you can connect to the server. Easiest way to do it is to visit www.whatsmyip.org
- To connect to your server, start Team Fortress 2 and type connect <Your IP> in the console.
Thanks to Team Fortress Wiki for providing me with the server.cfg
Last edited:






















