Team Fortress 2 Dedicated Server Guide: Requirements, Setup, Lag and Fixes
What a TF2 server needs, how to install and configure it, how to read and fix lag, and a troubleshooting order for the faults that stop players joining.
What a TF2 server needs, and the decisions to make first
The TF2 dedicated server, srcds, is free. You install it with SteamCMD, not through the normal Steam client. The install is now about 15 GB on Windows or Linux, so keep at least 16 GB of free disk for it, plus room for maps and logs. More important than raw core count is fast single-core CPU speed, because TF2 server work is mainly limited by how quickly one main server thread can finish each tick. If you plan to host from home, read up on self-hosting a game server first, because a public server can be limited by upload speed and it only stays online while your PC does.
There are four decisions worth making before you install anything. They affect the files you use, the launch command, and how easy later admin work will be.
Linux needs 32-bit libraries
Plugins must match
to show in the browser
24-player server
CPU: the real performance limit
For TF2, fast single-core performance matters more than a big core count. The reason is mechanical: the main game loop still has to complete one tick at a time, in order, every 15 ms. Extra cores can help with background work and thread pools, but they do not make a late main thread stop being late.
That is why host marketing about “more cores” tells only part of the story. In plain terms, a vCPU on a plan is a share of a physical processor core rather than a whole core of its own. For TF2, the quality of that share matters more than collecting a lot of shares you barely use. A fast single core with decent scheduling is usually better than a slower plan with a bigger headline core count.
Install the server with SteamCMD
Install app ID 232250. That is the TF2 dedicated server package. SteamCMD can fetch it anonymously, so you do not need to log your personal account into the tool just to install the files.
Windows
Create a runscript called tf2_ds.txt inside your SteamCMD folder:
@ShutdownOnFailedCommand 1 @NoPromptForPassword 1 force_install_dir C:\TF2server\ login anonymous app_update 232250 quit
Then create update.bat in the same folder:
.\steamcmd.exe +runscript tf2_ds.txt
Linux
On Debian or Ubuntu 64-bit, install the 32-bit compatibility libraries first, because TF2 server components still rely on them. Use a dedicated non-root user so the server is not running as root.
sudo dpkg --add-architecture i386 sudo apt update sudo apt install lib32z1 libncurses5:i386 libbz2-1.0:i386 lib32gcc-s1 lib32stdc++6 libtinfo5:i386 libcurl3-gnutls:i386 libsdl2-2.0-0:i386 sudo useradd --create-home gameserver
Some newer releases no longer ship libtinfo5:i386 or libncurses5:i386, so if your package manager complains, that part is a distro packaging issue rather than a TF2 one.
Switch to the gameserver user, then download SteamCMD and install the server files into their own folder:
mkdir ~/hlserver && cd ~/hlserver wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz tar zxf steamcmd_linux.tar.gz ./steamcmd.sh +force_install_dir ~/hlserver/tf2 +login anonymous +app_update 232250 validate +quit
Run the same command again whenever TF2 updates. Valve patches the game often, sometimes several times in a week: the autumn 2026 updates included a fix for an exploit that let the Dragon’s Fury crash servers (12 October) and a security and stability update (23 November). Players on the new version cannot join a server still on the old one, and an outdated server stays open to exploits that have already been fixed.
Get a Game Server Login Token
This is the step that most “my server is not showing up” problems come back to. To appear in the server browser, the server must have a valid Steam Game Server Login Token. Create it using App ID 440, which is TF2 itself, not 232250. The reason is simple: 232250 is the server package you download, but the browser listing and Steam game server identity are tied to TF2 as a game, which is app 440.
Write server.cfg, mapcycle.txt and motd.txt
Your main server config lives in tf/cfg/server.cfg. Make sure it is really a .cfg file and not a text file that only looks right in Explorer. Start with a small, readable config so that when something is wrong you know where to look.
// tf/cfg/server.cfg hostname "My TF2 Server" sv_password "" rcon_password "change_this" sv_region 3 sv_lan 0 mp_timelimit 30 mp_maxrounds 10 sv_allowupload 1 sv_allowdownload 1 net_maxfilesize 15 sv_contact "admin@example.com"
- hostname is what players see in the browser. Keep it clear so you can recognise your own server during testing.
- sv_password controls access. An empty value means public entry. If you want “friends only”, set a password here, but leave
sv_lan 0so the server is still an internet server rather than LAN-only. - rcon_password secures remote admin. RCON uses TCP on the game port, so if you expose it remotely, make the password strong and keep it private.
- sv_region 3 helps browser filtering for Europe. If you prefer no regional restriction,
-1is world. - sv_lan 0 is the key internet setting. If this is wrong, the server behaves like a local test box.
- sv_wallbug arrived on 6 October 2026, after Valve fixed players getting stuck on some angled walls and props. It lets a community server switch the previous movement behaviour back on; leave it at its default unless your players rely on the old movement.
Ports, port forwarding and how players actually join
A joinable TF2 server needs two separate things: the process must be listening on the right ports, and your network has to let that traffic reach it. On a home connection, that usually means forwarding ports from the router to the machine running TF2.
| Port | What it does | Who needs it |
|---|---|---|
| 27015 UDP game | Main game traffic for the server itself. | Required for players to join from outside your network. |
| 27015 TCP RCON | Remote console administration. | Only needed where you want remote admin access. Do not expose it casually. |
| 27020 UDP SourceTV | SourceTV traffic. | Only needed if you use SourceTV. If not, launch with -nohltv. |
| 27005 client | Client-side port shown in the server network line. | Mainly relevant for diagnosing bind issues; players do not type this as the server address. |
For public browser listing, the GSLT is what gets you into the Steam server browser ecosystem. Port forwarding alone is not enough. For home servers, forward only the ports you actually use. That reduces exposure and makes faults easier to trace.
How TF2 networking works in 2 minutes
TF2’s server simulation is fixed at 66 ticks per second, with a 15 ms timestep. That means the world only advances on that schedule. The server sends snapshots of the world state to clients, and clients send command packets back with their movement and shots.
Myths worth ignoring
- TF2 is not a 128-tick server game. The
-tickratelaunch option is disabled in code for TF2, and “128 tick TF2” on a VAC server is not a real standard option. - Even in general Source terms, higher tickrate costs more CPU. Valve does not suggest running a game server with a higher tickrate than 66.
- Random “net config” packs are not a fix. Many mix client and server cvars, and Valve’s own advice is to keep the defaults unless the server and every client have the bandwidth and CPU to spare.
Fix hit registration first: rates, snapshots, interp and lag compensation
Once you know the server is not simply missing ticks, fix the network settings that most affect how shots feel. The aim is not to “boost tickrate”. The aim is to let clients receive and send data cleanly at TF2’s real 66-tick pace without outdated caps causing choke.
Use a sane 66-tick rate block on the server
sv_minupdaterate 66 sv_maxupdaterate 66 sv_mincmdrate 66 sv_maxcmdrate 66 sv_minrate 100000 sv_maxrate 0
Why this works: sv_minupdaterate and sv_maxupdaterate at 66 match the server’s fixed simulation, so clients are not allowed to drift down to very low snapshot rates. sv_mincmdrate and sv_maxcmdrate at 66 do the same for incoming user commands. sv_maxrate 0 removes the server’s upper cap on each player’s rate (0 means unlimited), so a low cap on the server cannot hold snapshot data back and cause choke. sv_minrate 100000 sets a floor in bytes per second, so a player with a very low rate still receives enough data for 66 updates a second.
What resource this uses: network bandwidth, not extra server tickrate. These settings do not raise server FPS and they do not lower CPU load. They simply stop the server from artificially throttling data below what a normal 66-tick TF2 server should be sending.
Trade-off: if a player’s own connection cannot carry the data cleanly, forcing aggressive rates can create choke or loss on their end. That is why Valve warns that improper changes can do more harm than good. Keep changes targeted, then stop. Do not keep stacking “high-performance” tweaks just because they sound fast.
Fix stability next: server FPS, CPU load, plugins, player count and 64-bit
If the whole server goes bad when it fills up, think CPU first. Source servers mainly care about fast single-core speed because the main game loop has to finish each tick on time. More RAM helps modded setups and prevents cramped hosting, but RAM does not rescue a server whose main thread is already late.
Watch for the real failure point
On TF2, server FPS near 66.67 during action is the healthy target. Once it drops below 60 in live combat, the server is no longer finishing work fast enough. That creates global symptoms: rubber-banding, warping, delayed feedback and whole-round “muddy” play. If CPU is near 100 with players on, you are not looking for a magic cvar. You are looking for less work or faster hardware.
Profile plugins instead of guessing
Use SourceMod’s built-in profiling on a busy server:
sm prof start vprof sm prof stop con_logfile "vproflog.txt" sm prof dump vprof con_logfile ""
Let players fight for a few minutes between the first two commands. The dump prints the report to the server console, and the con_logfile lines around it also save it as vproflog.txt in the tf folder, so you can read it at leisure. Heavy plugins cost main-thread CPU, and enough of them together can drag down server FPS even if none looks dramatic alone. The trade-off in removing them is simple: you lose features, but you regain tick stability. If complaints only happen on plugin-heavy nights, this is usually where the answer lives.
Be realistic about slots and maps
Heavy custom maps can do the same sort of damage. If official maps stay stable and one custom map does not, that map is part of the problem even if the machine itself is decent.
Capacity planning: match the plan to the server you are actually running
| Server profile | RAM | vCPU | What it suggests |
|---|---|---|---|
| Vanilla 1-8 players | 1-2 GB | 1 vCPU | Fine for small private play, but not much headroom for addons |
| 8-16 players vanilla | 2-3 GB | 2 vCPU | A safer floor for a modest community server |
| 24-player public with official maps | 3 GB | 2-3 vCPU | Reasonable baseline for a standard public setup |
| 24-player with heavy plugins | 4-6 GB | 3 vCPU | Extra memory helps the mod stack, but CPU is still the key limiter |
| 24-32+ players | 4 GB | 3 vCPU | High-pop setups need careful plugin discipline and realistic expectations |
Fix launch failures
A launch failure means the process never becomes a joinable game. The most common causes sit on the launch line or in the install, not in server.cfg. On Linux, a missing 32-bit library is the other usual cause; rerun the package list from the install step if the console names one.
Start with a map that actually exists
If the console warns that no map was specified, add +map and use the map name without .bsp. ctf_2fort is the usual test map because it ships with the server. If you set a custom default map in a host panel, the name must match a file in tf/maps exactly. Nodecraft’s TF2 notes treat a mis-configured default map, or damaged server files, as a typical cause of a segmentation fault on start, so a panel field that still points at an old or renamed map is worth checking before you rebuild the whole install.
Fix connection and listing problems
Here the server process stays up. The failure is that players cannot find it, or they can see it and still cannot join. Direct connect is the fastest way to split those two cases. From the developer console, a player should try connect IP:27015, using the port from the server’s own network bind line.
The server is missing from the browser
A public TF2 server needs a valid Steam Game Server Login Token to appear in the server browser. Create that token for App ID 440, which is Team Fortress 2 itself, not 232250. 232250 is only the dedicated server package you download. The Steam account that creates the token must not be limited, community-banned or locked, and it needs a qualifying phone number. Use one token per server and treat it like a password.
Put it on the launch line as +sv_setsteamaccount YOURTOKEN. Without it, the server can still start and accept a direct connect, but it will not appear in the browser. That is why “I can join by IP, but nobody can find us” so often ends at the token rather than the router.
Friends outside your network cannot join
If you can join from the same machine or the same LAN, but friends outside cannot, the process is running and the remaining problem is the path to it.
| Port | Protocol | What it is for | When you need it |
|---|---|---|---|
| 27015 | UDP | Game traffic for the server itself | Always, for anyone joining from outside the machine |
| 27015 | TCP | RCON | Only if you want remote console access |
| 27020 | UDP | SourceTV | Only if you use SourceTV; otherwise launch with -nohltv |
Other TF2 server questions
Is a Team Fortress 2 dedicated server free?
Yes. The TF2 dedicated server is free and installs through SteamCMD with app ID 232250 using anonymous login. Your main costs are the machine, the connection, and the time needed to keep it updated and reachable.
Can I set a TF2 server to 128 tick?
Not in the normal supported VAC setup. TF2 runs at a fixed 66 tick rate, and the -tickrate launch option is disabled in code for TF2. Restoring it needs a server plugin that only loads with -insecure, which switches Valve Anti-Cheat off. That is not a sensible answer for a public community server.