DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
World desk10 min

Garry’s Mod Server Config Guide: server.cfg Settings Explained

A practical Garry’s Mod dedicated-server guide covering server.cfg syntax, hostname and password settings, RCON security, SteamCMD updates, GSLT startup arguments, gamemode and map changes, content downloads, hosting choices and troubleshooting.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Garry’s Mod’s server.cfg is the persistent configuration file for a dedicated server. It normally lives at garrysmod/cfg/server.cfg and contains one console-variable setting per line, such as hostname "My Server Name". Startup arguments are separate: they choose the initial player limit, gamemode, map and Steam authentication token when srcds launches.

For a working internet server, install or update the dedicated files with SteamCMD, launch srcds with a valid Steam Game Server Login Token (GSLT), and use server.cfg for values that should persist between restarts. The guide below explains the file, the launch command, the important convars, gamemode and map changes, security decisions, hosting choices and a practical troubleshooting order.

As an Amazon Associate I earn from qualifying purchases.

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

What server.cfg is and where to find it

server.cfg is a plain-text file read by the Garry’s Mod dedicated server from the game’s configuration directory. The normal path is:

garrysmod/cfg/server.cfg

The path is relative to the directory containing your Garry’s Mod dedicated-server installation. On Windows, that directory also contains srcds.exe; on Linux, it contains the Linux server executable. A hosting control panel may hide the same path behind a file manager, but the filename and relative location remain garrysmod/cfg/server.cfg.

#1 Best Overall
Sale
TOZO A1 Wireless Earbuds Bluetooth 5.3 Light Weight in Ear Headphones | IPX5 Waterproof,2 Mics for AI Calls,Immersive Premium Sound Bass Headset with Charging Case,32 EQ via App Black
  • [Ultra-Lightweight Ear Buds Designed for Small Ears] Each earbud weighs only 3.7g and features a compact, ergonomic in-ear design made especially for small ears. Secure, low-profile, and comfortable for workouts, all-day wear or overnight sleeping.The ultra-slim profile sits flush in your ear with no hard edges poking or rubbing, so you can even sleep on your side without discomfort.
  • [Immersive Stereo Sound with TOZO OrigX Technology] TOZO OrigX tuning delivers clear vocals, balanced mids, and natural stereo sound for music, podcasts, and videos.
  • [Long Battery Life for Daily Use] Get up to 7 hours of playtime on a single charge, with up to 32 hours total using the charging case—ideal for workdays, commuting, and extended listening sessions.
  • [Bluetooth 5.3 & Stable Connection] Bluetooth 5.3 provides fast pairing, stable wireless performance, and reduced dropouts as you move around home or office.
  • [Deep Bass with Clear Vocals] High-performance drivers produce punchy bass while keeping vocals clean and detailed for everyday listening.

Use the exact filename

Windows can hide known file extensions. Confirm that the file is really named server.cfg, not server.cfg.txt. Keep one active file in garrysmod/cfg; editing a similarly named file elsewhere will not change the server.

Understand the syntax

Each setting uses a console-variable name followed by its value. Put quotation marks around text containing spaces. Numeric switches normally use 0 for disabled and 1 for enabled. Comments beginning with // make an explanation readable without changing the setting.

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.
hostname "My GMod Server
d" // incorrect: the quote is not closed
hostname "My GMod Server" // correct
sv_lan 0
sv_password ""

The first line above is intentionally malformed; a missing quote can make later text parse incorrectly. In a real file, use only the correctly quoted form. Save the file as plain text rather than a word-processing document. A UTF-8 text editor is appropriate.

Install and launch the dedicated server

SteamCMD installs and updates the dedicated-server files. Install SteamCMD in a directory you control, select the Garry’s Mod dedicated-server application in its command-line interface, and run the application update operation whenever you need to install or refresh the server files. Let the update finish before editing configuration or launching the server.

Keep the installation organized

  • Use a dedicated directory for the server rather than mixing it with a personal Garry’s Mod client installation.
  • Place garrysmod/cfg/server.cfg inside that dedicated installation.
  • Back up the configuration, addon list and any custom content before major updates.
  • Run updates while the server is stopped so files are not replaced while srcds is using them.

Launch with srcds arguments

The dedicated-server page’s pattern uses srcds.exe with startup arguments similar to:

srcds.exe +maxplayers 20 -console +gamemode sandbox +map gm_construct +sv_setsteamaccount your_gslt_here

Replace your_gslt_here with the GSLT issued for your server. Facepunch documents a GSLT as mandatory for dedicated-server operation. Treat the token as a credential: do not publish it in screenshots, repositories or support posts, and rotate it if it has been exposed.

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

-console keeps the server in console mode. +maxplayers 20 sets the initial player capacity requested at launch. +gamemode sandbox selects the starting gamemode, and +map gm_construct selects the first map. The exact executable name and path differ by operating system, but the distinction between launch arguments and configuration-file values is the same.

Rank #2
Sale
Smart Watch for Men Women Compatible with iPhone Samsung Android Phone 1.69 inch Full Touch Screen IP68 Waterproof Bluetooh Fitness Tracker Heart Rate/Sleep Monitor (Black)
  • 【IP68 Waterproof Multifunctinal Smart Watch】Torjalph fitness activity tracker smart watch is IP68 waterproof technology ,you can wear it when swimming,handwashing,it's rain-proof which means that you perform multiple exercise modes outside without worrying about sweat or rain corroding your fitness smart watch,and this watch equipped with a 230 mAh large capacity battery magnetic charging ,and this sports activity tracker watch can be used 5-7 days If fully charged.
  • 【Larger 1.83'' Full Screen Watch & Multi-dial Selection】1.83 inch full HD color touch screen smart watch for men / women provides excellent 240*284 resolution image quality ,This Bluetooth smart watch offers a better touch experience and remarkable immersion and ,more than 200 watch faces for you to choose from App"Da Fit ", you can change the dial style according to your mood to wear keeping the world on your wrist
  • 【Accurate Activity Tracker Smart Watch 】sports watch activity tracker uses sweat and dust resistant breathable silicone strap, our Fitness Tracker Smart Watch for Android iOS Phones supports 12 sports modes,walking,running,bicycle,swimming,badminton,basketball,football,rope skipping. This bluetooth calls smart watch for men women is lightweight and stylish, bringing more convenient and relaxing sports experience while also providing more protection.
  • 【Your 24 Hour Personal Daily Health Monitor】Fitness watch for women men full touch screen IP67 waterproof bluetooth smartwatch for Android iOS Phones with heart rate blood pressure monitor multifunction Andriod smart watch with steps counter sleep monitor sports fitness watch, monitoring blood oxygen saturation allows you to understand your physical condition in real time to track fitness progress ,to know your health status in time.
  • 【More Functions Bluetooth Call Smart Watch】This fitness activity smart watch full screen for iPhone and Android phones includes a bunch of new features including:The bluetooth smart watch can hang up the phone, receive and display WhatsAPP /Text /Facebook /Twitter /Messenger reminder.Support sedentary reminder, alarm clock, stopwatch, timer,weather information,music control, remote camera control compatible with Android 5.0 and above or iOS 9.0 and above smartphones.

server.cfg versus startup parameters

Use the file for persistent convars and the launch command for state that must be selected as the process starts. The following division prevents a common mistake: placing a startup-only choice in the wrong place and assuming it will be honored.

Task Typical location When it takes effect
Display name hostname in server.cfg When the configuration is executed; restart or reload as appropriate
Player join password sv_password in server.cfg When the convar is applied
RCON authentication rcon_password in server.cfg When the convar is applied
Initial player limit +maxplayers at launch Process startup
Initial gamemode +gamemode at launch Process startup and map initialization
Initial map +map at launch Process startup
Steam authentication +sv_setsteamaccount at launch Process startup; required for a dedicated server
Later map change changelevel map_name in the server console or RCON Immediately after the change completes

A setting can sometimes be supplied both ways, but duplicating values makes troubleshooting harder. Keep the durable policy in server.cfg and keep launch arguments limited to values that must be selected before the first map loads.

Essential server.cfg settings

hostname: the public server name

hostname is the name shown to players in server browsers and by query tools. Quote names that contain spaces, punctuation or symbols.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
hostname "My GMod Server"

Changing the name does not change the network address. If a new name is not visible, verify that the edited file is in garrysmod/cfg, check the console for parsing errors, and restart or execute the configuration so the new value is loaded.

sv_password: control who can join

sv_password sets the password players must provide when joining. An empty value leaves the server open:

sv_password ""

For a private session, replace the empty string with a password and give it only to the intended players. A player password controls entry to the game; it does not protect administrative commands.

rcon_password: protect remote administration

rcon_password authenticates remote-console commands. Use a long, random, unique value that is different from the player password and from every other account credential.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
New Bee Guitar Cable 10ft Electric Instrument Bass AMP Cord
  • [Low Noise High Fidelity] New bee guitar cord with 22AWG oxygen-free-copper center conductors provides enhanced signal transfer, the PVC insulation material and the high-density stranded copper double shield provide noise rejection for quiet operation
  • [Ideal for Choice] New bee 1/4 straight and right angle metal connectors, ensures a secure connection in any instrument, pedal, or amp jack. L shape great fro on stage guitar stands
  • [Wide Compatible] Suitable for mixer, power amplifier, microphone, effector, decoder, equalizer, electoronic organ, electric guitar, electric bass and other electronic equipments. Widely used in the installation of smart home, karaoke speaker, professional stage audio, etc
  • [Easy Disassemble] Making incidental repairs quick and easy! Very nice, flexible cable
  • [Dont Hesite to Order] 24 hours customer services and professional technology team are standing by
rcon_password "replace_with_a_long_random_secret"

Never put this value in a public repository, a tutorial screenshot, a support ticket or a chat message. If it appears in a log or screenshot, assume it is compromised and replace it immediately. Limiting who can reach the server’s administration interface is part of the security policy; a secret alone is not a substitute for network controls.

sv_lan: choose the network scope

sv_lan 0 is the maintained template’s value for an internet server. LAN mode changes the intended network scope, so confirm whether the server is for a local network or public internet before changing it.

sv_lan 0

If players outside the local network cannot see or join an internet server, do not assume this convar is the only cause. Firewall rules, port forwarding, provider networking and the GSLT also matter.

Client file transfer and custom content

sv_allowupload and sv_allowdownload

These convars control aspects of client file transfer. They are operational and security decisions, not cosmetic switches:

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

Disabling transfers can reduce what the server accepts or sends, but it can also leave clients without required files. Enabling transfers can consume bandwidth and expands the set of content-sharing behavior you must monitor. Decide according to the addons and maps you actually run, then test with a clean client.

sv_downloadurl

sv_downloadurl optionally points clients to a prepared distribution endpoint for missing files. It is useful only when that endpoint contains the expected directory structure and can reliably serve the files. A value that points to an incomplete or inaccessible location creates download failures rather than fixing them.

Before enabling any transfer setting, inventory Workshop items, server-side addons and custom maps. Make sure you have permission to distribute the content and that the endpoint does not expose unrelated files.

Rank #4
BSIMB 15.6" Digital Family Calendar & Chore Chart, No Subscription Fees
  • Digital Family Calendar: BSIMB digital calendar wall touch screen puts an end to your chaotic life. Designed for busy families, the digital calendar keeps you organised and in step with your family. Assign different colours and tasks to each family member to make family scheduling easier and more intuitive.
  • Easy Setup and Auto-Sync: Plug in, connect to WLAN and auto-syn your electric calendar in minutes. Digital wall calendar compatible with Google calendar, iCloud calendar, Outlook calendar, Cozi calendar and Yahoo calendar. Add events directly on the device or through the ecalendar app. Electronic calendar stays current whether you're at work or traveling—no manual updates needed.
  • All-In-One Home Assistant: Smart calendar builds habits and encourage independence with personalised chores. Display daily meal plan to reduce the daily ‘What's for dinner?’ stress. To-do lists keep track of everything you want. Turning chores into valuable achievements with stars and rewards, making life easier and more enjoyable.
  • Manage Anytime Anywhere: BSIMB electronic calendar for family stay connected with the powerful ecalendar app. Access and manage your digital wall calendar anytime, anywhere with free features like stars & rewards, photo screensaver, chore charts, meals plans, to-do lists etc. Electronic planner paid features like Magic Import tailor advanced tools for users with special needs.
  • Stay in Touch with Loved Ones: Share photos or videos from your phone to electronic wall calendar with app, instantly update your life moment, and keep in touch with your family, especially those who are far away; you can also surprise your smart calendar digital wall by sending him a wish card; it's also great for keeping tech-illiterate elders in touch with the youngsters.

Gamemodes and maps

Sandbox is the default

Sandbox is Garry’s Mod’s default gamemode. Other gamemodes can add their own console variables, administration rules and content requirements. Do not copy a block of settings from an unrelated gamemode: an unknown or unsupported convar can be ignored, generate a console warning or interact badly with an addon.

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

Select the initial mode and map

Choose both at launch:

srcds.exe -console +gamemode sandbox +map gm_construct +maxplayers 20 +sv_setsteamaccount your_gslt_here

The gamemode value must identify an installed gamemode. The map must exist in the server’s content. If either name is wrong, the console output usually reveals the failure during startup.

Change a map while the server is running

Use the server console or an authenticated remote console:

changelevel gm_flatgrass

Changing the map does not by itself install missing content. Clients still need the map, models, materials and other files through Workshop distribution or the transfer method you configured.

Change gamemode safely

Changing gamemode normally requires setting the gamemode value and then changing the map so the new mode initializes:

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

Use the target gamemode’s documentation for its exact convars. If the mode requires a particular map or addon, satisfy that requirement before switching live players.

A practical starting server.cfg

This minimal file establishes a public internet server with a visible name and no player password. It is a starting point, not a universal production policy.

hostname "My GMod Server"
sv_password ""                 // empty string keeps the server public
rcon_password "replace_with_a_long_random_secret"
sv_lan 0
sv_allowupload 0
sv_allowdownload 0

Add gamemode-specific convars only after confirming that the selected gamemode supports them. Keep comments short and remove credentials before sharing the file. The GSLT is supplied at launch rather than stored in this example.

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

Gamemode-specific configuration

Gamemode authors can expose settings with metadata such as a text label, help text, type, default value, single-player behavior and replication behavior. Those metadata fields describe how a setting is presented and where it applies; they do not make every convar valid for every mode.

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

How to identify an unsupported setting

  • Read the gamemode’s own documentation and installation notes.
  • Start the server with only the required settings.
  • Watch the console for “unknown command” or unknown-convar messages.
  • Add one mode-specific setting at a time and test a map change.
  • Remove settings that belong to a different game, an old addon or a mode you no longer run.

This incremental approach makes it possible to identify whether a failure comes from the base server, the gamemode or an addon.

Public, private and managed-server choices

The same convars support different operating models. Decide the access policy before tuning cosmetic settings.

Decision Public server Private server
Access control Leave sv_password "" for open entry, then rely on moderation and bans Set a non-empty sv_password and distribute it privately
Discoverability Use a clear hostname and expect browser visibility Use a recognizable name for invited players; password protection limits entry
Moderation workload Higher: plan staff, rules and abuse response Lower for a trusted group, but still protect RCON
RCON exposure Keep the credential secret and restrict administrative access Keep the credential secret even when every player is known

Self-hosting gives direct control over files, addons and configuration, but you are responsible for SteamCMD updates, backups, firewall rules, port forwarding, uptime and network capacity. Managed hosting reduces setup and often supplies a control panel, but you trade some filesystem and networking control for the provider’s processes and policies.

Factor Self-hosting Managed hosting
Setup effort Install SteamCMD, configure the machine and expose the service yourself Usually faster initial deployment through a panel
Updates You schedule and verify SteamCMD updates Provider tools may simplify updates; confirm what is automatic
Network reliability Depends on your connection, firewall and port forwarding Depends on the provider’s network and chosen location
Addon and file control Full access to local files Controlled by the panel, permissions and provider limits
Backups You design, test and retain them Check whether backups exist, how often they run and how restoration works
Player capacity Limited by your hardware and connection; no universal figure applies Limited by the selected plan and provider policy
Geographic latency Determined by your server’s location and players’ routes Choose among the provider’s available regions
Monthly cost Uses existing hardware and connectivity but has electricity and maintenance costs Recurring fee varies by provider, region and allocated resources

There is no universal player-capacity, bandwidth-saving or performance number that can be attributed to an individual server.cfg switch. Measure your own workload and choose a location close to the intended player base.

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.

Security and maintenance practices

Separate credentials

  • Use a unique RCON secret.
  • Do not reuse the player password for RCON.
  • Keep the GSLT private and replace it if exposed.
  • Remove credentials from screenshots, crash reports and public configuration repositories.

Back up before changes

Stop the server before updates or large addon changes. Back up server.cfg, the addon and Workshop configuration, custom maps and any ban or administrative files your setup relies on. Store at least one copy outside the server machine and periodically verify that the files can actually be restored.

Review distribution settings

When a client lacks content, first identify which file is missing and which addon or map requires it. Review Workshop subscriptions and the download settings before enabling uploads. An incorrectly configured download endpoint can expose files, waste bandwidth or leave players with an incomplete installation.

Troubleshooting in the right order

  1. Confirm the path. Verify that the file is exactly garrysmod/cfg/server.cfg in the dedicated-server installation and is saved as plain text.
  2. Check parsing. Look at console output for unknown convars, malformed quotes or commands copied from another game or an outdated addon. Remove unsupported lines and restart.
  3. Separate launch settings. Verify +gamemode, +map, +maxplayers and +sv_setsteamaccount in the actual startup command. Do not assume a value in server.cfg replaces a missing launch argument.
  4. Test identity and access. From a client, confirm the displayed hostname and whether an empty or non-empty sv_password behaves as intended. If a credential appeared in a log or screenshot, rotate it before further testing.
  5. Check network scope. Confirm sv_lan, firewall rules, port forwarding and provider networking match the intended LAN or internet use.
  6. Check content delivery. If clients lack files, review Workshop subscriptions, addon installation and download settings. Do not enable uploads blindly as a workaround.
  7. Test the mode and map independently. Start with the known default Sandbox mode and a known installed map. Add the intended gamemode, map and mode-specific convars one at a time.

Operational checklist for each restart

  • SteamCMD update completed while the server was stopped.
  • GSLT is present in the startup command and has not been exposed.
  • server.cfg exists at the exact path and contains balanced quotes.
  • hostname, sv_password, rcon_password and sv_lan match the intended access policy.
  • Initial gamemode, map and maxplayers values are present in the launch command.
  • Gamemode-specific settings come from the mode’s documentation rather than an unrelated template.
  • Workshop, addon and download behavior has been tested with a client that does not already have the content.
  • A current backup exists before changing files or updating addons.

The reliable pattern is simple: keep persistent convars in garrysmod/cfg/server.cfg, use startup arguments for the initial process state, supply the required GSLT, and validate each gamemode or content-distribution setting against the software that actually runs on your server.

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.

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

Leave a Reply

Your email address will not be published. Required fields are marked *

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

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.