Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Put server.cfg in your dedicated server’s tf/cfg directory. Add only convars supported by the running Team Fortress 2 build, save the file as plain text, then restart the server or change map and verify the values in the console. The file stores settings that should be applied whenever a new map loads; lines beginning with // are comments and are ignored.

What server.cfg does

server.cfg is a plain-text command file for persistent Team Fortress 2 server settings. A dedicated server reads it as part of map startup, so identity, access, rules, logging and other convars can be applied consistently instead of being typed after every restart. Nodecraft’s documentation, updated September 5, 2024, describes the file as the place to store custom settings for a TF2 server.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

This article assumes a standalone dedicated server. A listen server is created from the player client and normally exists only while that client is playing; a dedicated server runs as separate server software and is the appropriate target for an always-on configuration file. The Official TF2 Wiki distinguishes these two arrangements, and their file locations and startup behavior should not be confused.

The file is executed as commands, one command per line. Use // to annotate why a setting exists, for example // Keep the public name recognizable. Comments are useful when you return to the file months later or hand it to another administrator.

#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter | 4Pack Type C Female to A Male Cable Converter for Apple Duo 17 16 15 14 Plus,iWatch Watch 12 11 10,iPad 9 8 Air,Airpods 5 4
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Install or update the dedicated server

Before editing configuration, make sure you are changing the files for the server instance that actually runs. SteamCMD is the usual way to install or update the dedicated software. A Steam Community guide from 2017 uses application ID 232250 and gives this Windows example:

steamcmd +login anonymous +force_install_dir C:tf2_server +app_update 232250 validate +quit

Replace the installation directory with the location you intend to run. The validate option checks the installed files; it can take time and may download replacements. After an update, re-check your configuration because a new build can add, remove or change convars.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Managed game-server panels may perform SteamCMD updates for you, but they still expose a server-specific tf/cfg directory or an editor that writes to it. Confirm which instance and game installation the panel controls before troubleshooting a file that appears to have no effect.

Find or create the correct file

  1. Open the root directory of the dedicated TF2 installation.
  2. Open tf, then cfg. The resulting path is tf/cfg relative to the server root.
  3. Create a new file named exactly server.cfg if one does not exist. It must be plain text, not a rich-text document.
  4. On Windows, enable file-name extensions in Explorer and check that the file is not accidentally named server.cfg.txt.
  5. Save the file using a text editor that does not insert formatting or smart quotes.

Keep a backup outside the live installation before major edits. If you operate several servers, verify the working directory in each launch script or service definition; copying a configuration into one installation does not change another instance.

Rank #2
Sale
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter | USB C Dongle with 90W Max Power Delivery, 3×5Gbps USB A Data Ports, for MacBook, Dell, and More (Charger Not Included)
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Build a safe baseline configuration

The following settings are a starting point, not a universal preset. Choose values for your intended game mode, audience and network. The command names should be checked against the live server’s own convar list before use.

Purpose Command What it controls Configuration guidance
Identity hostname "Your TF2 Server" The name displayed to browsers and connecting players. Use a clear name that identifies the community, mode or location without impersonating another server.
Private access sv_password "choose-a-player-password" The password required for players to join. Leave it unset for a public server. Change it if it has been shared beyond the intended group.
Administration rcon_password "use-a-separate-long-secret" The secret used for remote console administration. Never reuse a player password. Treat anyone who knows it as an administrator and rotate it after exposure.
Network mode sv_lan 0 or sv_lan 1 Internet visibility versus LAN-only operation. Use the value appropriate to your network. A LAN setting will prevent normal public-internet access.
Region reporting sv_region The broad geographic region reported by the server. Select the value supported by your build and hosting location; it is not a substitute for measuring player latency.
Content policy sv_pure 0, 1 or 2 Which client game files are accepted. Choose deliberately; the three modes have different security and customization consequences described below.
Console logging log on Enables server logging. Useful for administration and incident review, but monitor disk usage.
Log file output sv_logfile 1 Writes server activity to log files. Confirm that the account running the server can write to the log directory.
Log rotation style sv_log_onefile 0 Whether activity is kept in one file or split according to the server’s logging behavior. Pick the format that fits your retention and parsing tools.
Ban records sv_logbans 1 Records ban-related events in logs. Enable it when you need an auditable moderation trail.
Visible capacity sv_visiblemaxplayers The maximum player count advertised to browsers. Set it to the capacity you really intend to support; do not copy a value from a different game mode.
Round limit mp_maxrounds How many rounds a map may run before a change. Choose a limit that matches the mode and expected session length.

Quoted values are safest for names and passwords that contain spaces. Do not place explanatory text on a command line unless it follows //; otherwise the game may parse the words as additional arguments.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose an sv_pure policy

sv_pure is the most visible trade-off in a baseline file:

  • sv_pure 0: unrestricted client file locations. This gives players the most freedom for custom skins, models, sprays and other replacements, but provides the weakest control over modified content.
  • sv_pure 1: whitelist-based control. Files permitted by the server’s whitelist can be used; everything else is restricted. This is a compromise between custom content and consistency.
  • sv_pure 2: Steam-official content only. It offers the strictest content consistency and reduces opportunities for file-based abuse, while disabling most custom replacements.

These descriptions come from the Steam guide used for the configuration example. Test the policy with the actual maps, sounds and server-side content you plan to run; a setting that works for a stock server can reject a custom asset pack.

Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter | 85W Max PD, 2 USB 3.0 & 1 USBC Data Ports, SD/TF Card Reader, for Laptops/Mac and Other Type C Devices (Charger Not Included)
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

Use the live server as the command authority

Web guides and old snippets often contain client-only, removed or renamed commands. The reliable inventory is the running server’s own output. In the server console, run:

cvarlist log cvarlist.txt

This writes the available convars to cvarlist.txt. Search that file for a command before adding it to server.cfg. If the console reports an unknown command, remove it rather than assuming the warning is harmless. A command can exist in one TF2 build and be absent in another, particularly after updates.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

After editing, query important values in the console by entering the command without a value, such as hostname or sv_pure. The server prints the current value, allowing you to distinguish a syntax problem from a setting that was later overridden.

Apply changes and verify them

  1. Stop the server cleanly before editing when possible, so another process is not rewriting the file.
  2. Save server.cfg in the live instance’s tf/cfg directory.
  3. Start the server and watch the console for unknown-command, permission or parsing errors.
  4. Alternatively, change map after saving. Configuration is loaded before a new map, so a map change is a practical reload test.
  5. Query the values that matter to players and administrators, then connect from a client to test the password, visibility and content policy.
  6. Record the working version of the file and the date of the change in your backup or change log.

A current public configuration example dated April 26, 2026, from GameServerManagers includes identity, access and logging commands. Treat such examples as illustrations, not as proof that every line is appropriate for your server or current build.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray | Data transfer & Fast charging for MacBook, iPhone 17/16/15, iPad, Samsung Galaxy, Apple Watch
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

Why settings appear to reset on a map change

Map changes normally trigger configuration loading; a reset usually means a different file or command runs afterward. Check these causes in order:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Wrong file or extension: Confirm the path is the active server’s tf/cfg/server.cfg and that the operating system is not hiding a trailing .txt.
  • Editing a different instance: Compare the server’s launch directory, console startup messages and file timestamps with the directory you edited.
  • Map-specific or plugin commands: A map configuration or server plugin can execute after the general file and deliberately set another value. Temporarily disable suspected additions, then test a stock map.
  • Startup scripts and panels: A launch option, scheduled task or hosting control panel may regenerate configuration on restart. Check its startup command and generated-file settings.
  • Unsupported or restricted convar: The command may be unknown, client-only or restricted to a particular game state. Confirm it with cvarlist and read the console response.
  • Permissions: If the server account cannot read the file or the panel cannot write it, changes may never reach the process. Correct ownership and permissions, then restart.
  • Syntax errors: An unmatched quote or accidental extra text can prevent later lines from being interpreted. Reduce the file to a few known-good commands and add lines back one at a time.

When troubleshooting, change one variable per test and query the value immediately after the map loads. That identifies the process that overwrote it instead of masking several problems with a wholesale replacement.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Security and operational practices

Protect remote administration

Use a long, unique rcon_password, restrict who receives it and replace it immediately if it appears in a screenshot, log upload or shared chat. A player password protects entry; it does not protect administrative commands.

Understand VAC launch behavior

The historical Steam guide states that Valve Anti-Cheat is enabled by default and that adding -insecure to launch options expressly disables it. Treat that as launch-configuration guidance, not as a promise that behavior cannot change: after updates, inspect the server’s startup status and test the trust settings you require. Do not add -insecure merely to make a custom configuration work.

Best Value
Sale
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display | 85W Max PD, 1 Powered USB-C 5Gbps & 2 Powered USB-A 3.0 5Gbps Data Ports, for MacBook Pro, MacBook Air, Dell and More (Black)
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

Plan for logs and storage

Logging convars help investigate bans and connection problems, but files accumulate. Set a retention and rotation routine outside server.cfg, monitor available disk space and protect logs because they can contain player names, addresses or administrative activity.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Keep changes reversible

Copy the known-good file before changing map rules or content policy. Use dated filenames in your backup location, but keep only the active file named server.cfg in tf/cfg so the server does not load an unintended alternative.

Self-hosted, managed and local options

Approach Who maintains SteamCMD and files? Control over server.cfg Main trade-off
Self-hosted dedicated server You maintain updates, operating-system permissions, backups and uptime. Full filesystem and launch-option control. Maximum flexibility requires the most administration and monitoring.
Managed game-server hosting The provider generally handles the service and exposes a panel or file manager. Usually supports server.cfg, but some launch options and files may be abstracted. Less maintenance, with provider limits and recurring service cost.
Listen/local server The player’s game client starts and stops the server. Suitable for short private sessions rather than persistent hosting. Availability, performance and configuration lifetime depend on the host player.

Whichever approach you choose, the diagnostic method remains the same: identify the active instance, edit its tf/cfg/server.cfg, validate commands with cvarlist, reload by restart or map change and query the resulting values.

A practical first-pass checklist

  • Dedicated software is installed or updated with SteamCMD application ID 232250.
  • The file is plain text at tf/cfg/server.cfg in the active installation.
  • Hostname, access passwords, LAN mode and region match the intended audience.
  • sv_pure is chosen deliberately for security versus custom-content needs.
  • Logging is enabled only where storage and privacy are managed.
  • Round and visible-player limits reflect the actual mode.
  • Every command appears in the running server’s cvarlist output.
  • The console is clean after restart or map change, and queried values remain correct.
  • A backup exists before further edits.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.