Change the displayed name of a Garry’s Mod server by editing the hostname convar. For a self-hosted or dedicated server, open garrysmod/cfg/server.cfg, set hostname "Your Server Name", save the file, and restart the server. Then refresh the server browser; cached listings can continue showing the previous name temporarily.
Playing with friends? Godlike.Host runs hosted Garry's Mod servers from 10 data-center locations, with free DDoS protection.
If your server is rented, first use the hosting control panel’s server-name or settings field. Many panels generate or overwrite the hostname line, so a manual edit can be lost the next time you save panel settings. Confirm that the final value appears in server.cfg or in the in-game browser.
As an Amazon Associate I earn from qualifying purchases.
Free tools Windows power users keep installed
One-click scans. No signup required.
What actually controls the name
Garry’s Mod uses the hostname console variable, commonly called a convar, for the name presented to players in the server browser and connection information. The usual persistent location for that setting on a dedicated server is the game’s configuration file:
garrysmod/cfg/server.cfg
On Windows, the same path is commonly displayed with backslashes:
#1 Best Overall
- 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.
garrysmodcfgserver.cfg
The setting must be written as a key followed by a quoted value:
hostname "Your Server Name"
The name shown by a hosting company’s web panel is not necessarily the in-game name. A panel may have a separate label used only inside its own dashboard, while the Garry’s Mod browser reads hostname from the running server configuration. Treat those as two different values until you verify the name in-game.
Before changing anything
- Identify the server you are editing. If you operate several instances, each one has its own Garry’s Mod installation and configuration directory.
- Know who manages the configuration. With a self-hosted installation, you normally control
server.cfg. With a rented server, the control panel may rewrite selected lines whenever settings are saved. - Record the current file. Make a copy of
server.cfgbefore editing so you can restore it if a syntax error or panel change causes an unrelated setting to disappear. - Plan a maintenance window. Restarting is the dependable way to make a startup configuration change take effect, and connected players will be disconnected.
Change the name on a self-hosted or dedicated server
1. Stop the server
Stop the dedicated server cleanly before editing. This prevents the process from writing its in-memory configuration back over your changes while it is shutting down. If your management tool offers a Stop or Shut Down action, use that rather than abruptly closing the process.
2. Open the correct configuration file
Browse to the Garry’s Mod installation and open garrysmod/cfg/server.cfg. A typical dedicated-server layout places the file below the installation’s garrysmod folder. On Windows, use the equivalent garrysmodcfg directory in File Explorer; on Linux, use the forward-slash path in your file manager or shell.
If the file does not exist, check that you are inside the server’s Garry’s Mod directory rather than a client installation or a different server instance. Do not create a second server.cfg in a parent folder and expect the game to read it.
Rank #2
- 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.
3. Add or edit the hostname line
Find an existing line beginning with hostname. Replace only its value, or add one line if no hostname entry exists:
The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →hostname "Northbridge Sandbox | Build 3"
Keep the complete name inside straight double quotation marks. Quoting protects spaces and punctuation from being interpreted as separate command arguments. Use one hostname line in the file; if several appear, the value processed last can override an earlier one, making the result confusing.
4. Save as plain text
Save the file without changing its extension. A text editor may try to append .txt, creating server.cfg.txt; that file will not replace the real configuration. Preserve the existing encoding and line endings when possible, and make sure the account running the server can read the file.
5. Start the server again
Restart the server after saving. The configuration is read during startup, so changing the file while the process is running does not by itself guarantee that the active server has adopted the new value.
6. Verify the listing
Search for the server in Garry’s Mod’s server browser or connect directly and check the displayed server information. Refresh the browser if it still shows the old text. Listing services can cache results, so an old name may remain visible for a short period even after the running server has the new value.
Rank #3
- 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.
Example configuration
A small configuration might contain the hostname alongside other server settings:
// Public name shown to players
hostname "Northbridge Sandbox | Build 3"
// Other settings can follow
sv_cheats 0
The comment is optional. What matters for the name is the hostname command and its quoted value. Do not include the surrounding code-block formatting characters in the actual file.
Changing the name on a rented server or control panel
Hosted servers add a second layer of configuration. The exact labels differ between providers and panel versions, but the reliable approach is to determine whether a field changes the panel’s label, the game’s hostname, or both.
Use the panel’s server-name field first
Open the server’s settings and look for a field labelled Server Name, Hostname, or a similar term. One commonly documented layout places the field at System > Server Details. Save the setting and restart the server if the panel requests it.
PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteThat field may change only the name displayed in the hosting company’s own Game Control Panel. It may not alter the name players see in Garry’s Mod. After saving, inspect server.cfg when the panel allows file access, or verify the result in the in-game browser.
Rank #4
- 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
Check whether the panel owns the hostname line
Some panels manage commands at the top of server.cfg, including hostname and sv_password. When you save the panel’s Settings page, it can regenerate those lines and erase a manual edit. In that arrangement, change the name through the panel rather than repeatedly editing the generated file.
Put custom commands in the panel’s designated area
If the panel provides a Custom Commands or Additional Configuration section, use it for commands that the panel does not manage. Do not duplicate a panel-controlled hostname entry in a custom block unless the provider documents the order in which those commands run. A later command can override an earlier one, while a panel save can remove the earlier value entirely.
Restart and verify both names
After saving panel settings, restart when required, then check two places:
Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →Scan for outdated or missing drivers - takes under a minuteDriver Scan →- Read the label in the hosting dashboard to confirm the panel saved your change.
- Read the name in Garry’s Mod’s server browser to confirm the active
hostnamechanged.
If the dashboard is correct but the game browser is not, the panel field probably controls only the dashboard label or the server has not yet restarted with the new configuration.
Self-hosted files versus panel settings
| Server arrangement | First place to change the name | What to verify |
|---|---|---|
| Self-hosted or dedicated installation | garrysmod/cfg/server.cfg |
Restart, then check the in-game browser. |
| Rented server with a managed Settings page | Panel field labelled Server Name, Hostname, or equivalent | Confirm the generated hostname value or the in-game listing. |
| Panel with a Custom Commands section | Use the provider’s documented configuration field; reserve Custom Commands for unmanaged settings | Check command order and whether a later generated line overrides it. |
| Panel label only | System > Server Details or equivalent dashboard field | Do not assume the dashboard label is the Garry’s Mod browser name. |
Why the old name is still visible
The server was not restarted
A saved file does not necessarily alter the already-running process. Stop and start the server, or use the panel’s Restart action, then wait for it to finish loading before checking again.
Best Value
- 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.
The browser has a cached listing
Server browsers can retain a previous response. Leave and reopen the browser, refresh the list, or wait for the listing to update. A stale result does not prove that the configuration failed.
You edited the wrong installation
Multiple servers, staging copies, and client installations can have similarly named folders. Compare the path with the instance started by your launch script or hosting panel. Check the active server’s garrysmod/cfg/server.cfg, not a backup or development copy.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
A panel overwrote your manual edit
If the new name disappears after saving panel settings or restarting, the panel likely owns that line. Use its Server Name or Hostname field, or follow its documented Custom Commands workflow instead of editing a generated section.
The line is malformed
Check for a missing opening or closing quote, smart quotation marks copied from a word processor, an accidental .txt extension, or a second hostname line later in the file. The safest form is a single plain-text line such as:
hostname "Northbridge Sandbox | Build 3"
The name changed in the panel but not in-game
This usually indicates that the panel’s field is a dashboard label rather than the game convar. Look for a separate game-settings field, inspect the generated configuration if available, restart, and verify from the Garry’s Mod browser.
The name changed briefly and then reverted
A startup script, panel synchronization task, or another configuration file may be applying a different value after launch. Search the active configuration for additional hostname lines and check the panel’s managed-settings documentation. Keep one authoritative value and remove competing entries where the panel permits it.
Do these 3 things before closing this tab:
1Fix the driver behind crashes, sound loss and screen glitches2Clear out junk files and repair common Windows errors3Scan for outdated or missing drivers - takes under a minuteRefreshing the listed name with the server console
One hosting guide reports that entering heartbeat in the server console can prompt the server to refresh its listed information. Treat this as an optional refresh step, not a substitute for saving the correct hostname and restarting when the configuration requires it. Panel permissions may prevent access to the console, and listing delays can still occur after a heartbeat.
Naming tips that prevent avoidable problems
- Keep the name readable at a glance; put the community or mode first and secondary details after a separator.
- Use ordinary letters, numbers, spaces, and common punctuation while testing. If a special symbol produces an unexpected result, temporarily replace it with plain text to isolate the problem.
- Do not put line breaks in the value. The setting belongs on one configuration line.
- Do not include passwords, administrator tokens, private addresses, or other sensitive data in a public name.
- After changing a temporary event name, restore the normal value in the same authoritative location so a later panel save or restart does not bring back an unintended label.
How to confirm the change conclusively
- Open the configuration used by the running instance.
- Confirm there is one intended
hostnameentry and that its value is enclosed in straight double quotes. - Save the file or panel setting.
- Restart the server through the same method that normally launches it.
- Wait until the server is fully online.
- Refresh the Garry’s Mod server browser and locate the instance by address, map, or other identifying detail rather than relying only on the old name.
- Compare the browser name with the panel label. If they differ, the panel and game are using separate values.
What the official documentation establishes
The Facepunch wiki’s CreateConVar documentation is the relevant official reference identified for this configuration model. Its summary explains that convars can be set through an interface and, for dedicated servers, can be supplied in server.cfg during startup. No dedicated official Facepunch article specifically for the hostname setting was identified, so panel behavior and exact menu labels should be treated as provider- and version-dependent.
Quick Recap
Quick decision guide
- You run the files yourself: edit
garrysmod/cfg/server.cfg, savehostname "...", restart, and refresh the browser. - You rent a server and have a Hostname or Server Name setting: change it there first, restart if requested, and verify the in-game listing.
- Your panel keeps undoing the file edit: the panel manages the line; use its settings page or documented custom-command mechanism.
- The dashboard name is correct but players still see the old name: treat the dashboard label and the game’s
hostnameas separate settings and inspect the generated configuration. - The file looks correct but the listing is stale: restart once more if needed, refresh the browser, and allow for listing cache or update delay.
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.




