Configure TF2 via tf/cfg/server.cfg, the map rotation and a plugin system that matches your server build. Then check the Steam login, joining and map changes. Round rules, network access and moderation rights are separate tasks and should be tested individually.
Valve's TF2 Dedicated Server documentation covers the launch parameters; the player count belongs in the supported launch configuration.
Requirements
To configure your server, you need access to your TF2 server in the game-serverhosting panel, the file manager or SFTP access, the server console and ideally RCON. If you want to use SourceMod, you also need MetaMod:Source and SourceMod from the official download sources.
Valve provides management of Game Server Login Tokens via the documentation at steamcommunity.com. For Team Fortress 2, use the App ID 440 there if you want to enter your own token instead of the automatically assigned one.
At game-serverhosting, technical control is the focus: you can work comfortably in the panel, but you can still edit files like server.cfg, mapcycle.txt and SourceMod configurations directly whenever you need to.
Order Your Server and Open Access
Select Team Fortress 2 as the game in the order wizard. Once it's provisioned, open the server management, the console and the file manager in the panel. You'll also find the starting point for building your entire community server in the guide Rent a Team Fortress 2 Server – Community Server Guide.
File paths and settings differ significantly for other Source or survival servers. If you run several games, the separate guides Rent a CS2 Server: Settings, Plugins & Workshop Maps 2025 and Rent a Valheim Server: Mods, Configuration & Boss Order 2026 help you compare the workflows.
Set the GSLT Correctly
The Game Server Login Token registers your server with Steam. At game-serverhosting, the token for normal operation is automatically entered into the startup variable STEAM_ACC. Check this value if your server doesn't show up in lists, players get disconnected immediately or the console reports token errors.
You can optionally use your own GSLT. Create it via the documentation at steamcommunity.com with App ID 440 and enter it in the panel under the startup variables:
STEAM_ACC=YOUR_GSLT_TOKEN
Use a separate token for each server and restart the server after the change. Don't share the token publicly, because it's linked to your Steam account.
Edit Server Variables in the Panel
The quickest way to configure TF2 is the guided editor directly in the panel on the server management page. You set player cheats (sv_cheats), round limits (mp_timelimit, mp_winlimit, mp_maxrounds), team balance (mp_autoteambalance) and friendly fire via labeled fields with help texts. game-serverhosting writes the changes back to tf/cfg/server.cfg. You'll find the editor under Game Settings → Server Variables.
Edit server.cfg Manually
If you want to set ConVars that aren't covered by the editor, edit tf/cfg/server.cfg directly. Back up the file first or use the backup feature in the panel.
// Server name
hostname "My TF2 Server"
// Maximum players
// GSH sets +maxplayers from the booked slots; a different slot tier requires a package change
// RCON password for remote control
rcon_password "MyRCONPassword"
// Server password (empty = public)
sv_password ""
// Server region label; changes neither location nor latency
sv_region 3
// Send heartbeat to the Steam master server
heartbeat
// Prevent player cheats
sv_cheats 0
sv_pure 1
// Voice restrictions (optional)
// sv_voiceenable 1
// Pure server mode (prevents client modifications)
sv_pure_kick_clients 1
// TF2-specific: casual/competitive settings
mp_tournament 0
mp_teams_unbalance_limit 1
mp_autoteambalance 1
Don't expose sensitive values like rcon_password in screenshots or public support posts. After making changes, restart the server or run the appropriate RCON commands if the variable in question can be changed at runtime.
Set Up Maps and the Mapcycle
You control the rotation via tf/cfg/mapcycle.txt. Each line contains one map name without the file extension:
cp_dustbowl
ctf_2fort
koth_harvest_final
pl_badwater
cp_granary
koth_nucleus
ctf_turbine
pl_upward
| Prefix | Game Mode |
|---|---|
cp_ |
Control Points |
ctf_ |
Capture the Flag |
koth_ |
King of the Hill |
pl_ |
Payload |
arena_ |
Arena |
mvm_ |
Mann vs. Machine |
Trigger an immediate change via RCON or the panel console:
rcon changelevel koth_harvest_final
rcon mp_nextmap cp_dustbowl
Upload custom maps as .bsp files to tf/maps/. The entry in mapcycle.txt must match the file name exactly. With sv_allowdownload 1, clients can download missing files when joining; for large maps, a properly set up FastDL or Workshop workflow makes more sense than slow direct downloads.
Install and Manage SourceMod
SourceMod extends TF2 servers with admin commands, permission management and plugins. You'll find the official downloads in the documentation at sourcemm.net and the documentation at sourcemod.net.
- Download MetaMod:Source.
- Download SourceMod.
- Extract both archives into the
tf/directory so thataddons/metamod/andaddons/sourcemod/exist. - Restart the server.
- Check in the console whether MetaMod and SourceMod load without errors.
Assign admin rights in addons/sourcemod/configs/admins_simple.ini:
"STEAM_0:1:12345678" "99:z" // Superadmin (all rights)
"STEAM_0:0:98765432" "bdk" // Moderator (ban, kick)
You can find your Steam ID from your profile URL, for example via the documentation at steamid.io. Place plugins as .smx files in addons/sourcemod/plugins/.
| Plugin | Function |
|---|---|
TF2 Scramble |
Team scramble after a round for balance |
TF2 RTD |
Roll the Dice — random effects per round |
AFKManager |
Automatically kick AFK players |
MapChooser |
Vote-based map rotation |
TFTrue |
Competitive rule sets (whitelist etc.) |
Important ConVars for Operation
You can set these values in server.cfg, via RCON or through suitable panel fields:
// Respawn time
mp_respawnwavetime 10
// Critical hits
tf_weapon_criticals 1
tf_weapon_criticals_melee 2
// Start conditions depend on the game mode and match configuration.
// Play time per round in minutes
mp_timelimit 30
// Maximum overtime
mp_overtime_enable 1
// Voice chat (0 = disable)
sv_voiceenable 1
Only change a few values at a time and document why you set them. That way, you'll find out faster later whether a problem comes from a ConVar, a plugin or a map.
Check the Result
Restart the server and check the console first. No token, map or plugin errors should appear. Then connect as a player, test a map change, check RCON, open the admin menu and verify that the next mapcycle entry loads.
For visibility in Steam, a valid GSLT, reachable server ports, a working heartbeat and unproblematic tags are important. Only use values for sv_tags that actually describe your server, and remove old experiments if the server isn't listed.
Troubleshooting
Server Doesn't Appear in the List
Check STEAM_ACC, the server logs, port reachability and heartbeat. Then restart the server and wait a moment before searching again.
SourceMod Plugin Doesn't Start
First check whether MetaMod:Source has loaded. Then verify the file path, the plugin version and the SourceMod logs. Many errors are caused by an incorrect folder structure after extracting.
Map Change Fails
Check whether the map is in tf/maps/ and whether the name in mapcycle.txt matches exactly. For custom maps, also look out for missing accompanying files.
Players Get Disconnected Immediately
Common causes are token problems, sv_pure conflicts or faulty custom files. Read the last log lines after the join attempt and test temporarily with an official map.
Check a ConVar Against Its Actual Value
A line in server.cfg doesn't prove it has been applied. Query the value in question in the server console after startup and check for Unknown command as well as later configs that might override it. In the GSH setup, the slot count is taken as a launch value from the booked slots; your own CFG change doesn't upgrade the package, and the physical server region doesn't change through sv_region. For plugin problems, check MetaMod and SourceMod separately from native server plugins. Then test a normal join and a map change, because map-specific configs can reset round values. Keep your GSLT and RCON password out of public logs.
FAQ
Do I need a separate GSLT for every TF2 server?
Yes. Use a separate Game Server Login Token for each server. At game-serverhosting, a token is set automatically for standard operation; you can optionally enter your own token via STEAM_ACC.
Should I use server.cfg or the panel editor?
Use the panel editor for common values like round limits, cheats and team balance. Edit server.cfg directly if you need additional ConVars or want to maintain an existing configuration under version control.
How do I keep unwanted players out of private rounds?
Set a server password via sv_password, use a strong RCON password and only grant admin rights to trusted Steam IDs. For public servers, clear rules and moderation plugins help.
Which maps are good for getting started?
For short, easy-to-understand rounds, koth_harvest_final and ctf_2fort are a good fit. Payload maps like pl_badwater work better once your group already plays in a coordinated way.
Can I implement competitive rules?
Yes, you set the basic values via ConVars. For stricter rule sets, whitelists and league-style workflows, look into suitable league configurations and extensions. TFTrue is a native server plugin, not a SourceMod plugin; follow its own installation process and test the configuration separately before matches.