What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
To permanently rename a Counter-Strike 2 dedicated server, add hostname "Your Server Name" to game/csgo/cfg/server.cfg, save the file, and restart the server. A hosting-panel user edits the file in the panel’s file manager; a self-hosted Linux administrator edits the same file in the SteamCMD installation. If the server is launched by a script, you can instead pass +hostname "Your Server Name" at startup.
Prefer not to run the server on your own PC? Godlike.Host offers hosted Counter-Strike 2 servers with free DDoS protection and up to three free backups a day.
What actually controls the displayed server name?
Counter-Strike 2 reads its dedicated-server name from the hostname console variable. The persistent form is a line in server.cfg:
As an Amazon Associate I earn from qualifying purchases.
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →hostname "My CS2 Server"
The text between the quotation marks is the name players see in the server browser and when they connect. Keep the setting on its own line. Do not put a comment marker, additional command, or unescaped quotation mark on that line.
CS2 dedicated servers and the game client use Steam app ID 730. A dedicated server is normally started with -dedicated; on Linux, Valve’s community-maintained documentation recommends using the supplied cs2.sh script rather than launching the binary directly. Those launch details do not change the location or syntax of the hostname setting.
#1 Best Overall
- BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
- EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
- COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
- LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
- WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.
Choose the method that matches your setup
| Method | Where the name is stored | When it is useful | Persistence |
|---|---|---|---|
Edit server.cfg |
game/csgo/cfg/server.cfg |
Normal choice for panel-managed and self-hosted servers | Persists across restarts |
| Launch parameter | Your startup command or script | Servers recreated or configured entirely by a startup script | Persists as long as the script retains the parameter |
| Console command | Running server process only | Testing a name before committing it to configuration | Temporary; it is lost on the next restart |
Use one persistent source as your authority. If both a startup script and server.cfg define a name, the value applied later in the startup sequence can win. When troubleshooting, remove old duplicate lines and make the intended value explicit.
Change the name in a hosting control panel
Panel interfaces differ, but the underlying operation is the same. Providers such as Host Havoc and BisectHosting expose a file manager and a server console; the following sequence applies to that style of service.
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallOutdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware match1. Stop the server
Use the panel’s Stop button before editing the configuration. Stopping first prevents the running process from rewriting the file and ensures the next launch reads the saved value.
2. Open the CS2 configuration directory
In the file manager, open game/csgo/cfg/. One documented container layout is:
/home/container/game/csgo/cfg
If server.cfg is already present, open it with the panel editor. If it is missing, create a new file named exactly server.cfg; do not accidentally create server.cfg.txt.
3. Add or replace the hostname line
Insert this line on its own line, replacing the example text:
hostname "My Community Server"
If the file already contains a hostname line, edit that line instead of adding several competing definitions. Save the file using the panel’s Save button.
Rank #2
- WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
- AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
- PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
- ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
- COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed
4. Start the server again
Use Start or Restart in the panel. The restart loads the new configuration and allows the name to be advertised to the Steam master list. Starting without a successful save leaves the old value active.
5. Confirm the panel did not overwrite the file
After the server is online, reopen server.cfg and check that your line is still present. Some panels generate configuration files from a separate startup or “advanced settings” field; if your edit disappears, that generator is the setting you must change.
Change the name on a self-hosted Linux server
For a SteamCMD installation, locate the directory in which you installed the server. The configuration is below that directory in game/csgo/cfg/. For example:
/home/cs2/server/game/csgo/cfg/server.cfg
Locate or create the file
Stop the running server, then open the file with your preferred text editor. A typical shell workflow is:
cd /home/cs2/server/game/csgo/cfg
nano server.cfg
The exact parent directory is installation-specific; the important part is the game/csgo/cfg/ suffix beneath the CS2 server files. If no file exists, create it with that exact name.
Write a clean configuration line
Add:
hostname "My Linux CS2 Server"
Save the file, exit the editor, and start the server using your normal launch script. On Linux, use cs2.sh as supplied with the installation rather than invoking the server binary directly.
Check permissions and line endings
The account that starts the server must be able to read server.cfg. If the file was created by a different administrator account, correct its ownership or permissions according to your server’s normal policy. Keep the file as plain text and avoid a rich-text editor that inserts formatting characters.
Recommended Free Tools
Rank #3
- Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
- Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
- Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
- ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
- Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)
Set the name with a launch parameter
If your server is started from a shell script, service unit, container command, or panel startup field, pass the hostname at launch:
./cs2.sh -dedicated -maxplayers 12 -port 27015 +hostname "My Scripted Server"
The exact player count, port, and installation prefix are examples; retain the values used by your own server. The relevant part is +hostname "My Scripted Server". This approach is useful when a deployment recreates the game directory or when configuration is managed as code. It is persistent only because the startup command is persistent: if you edit the command temporarily, the old name returns on the next deployment.
Do not put the + parameter in a configuration file. Put it in the command that launches CS2. Conversely, do not put a shell command into server.cfg; that file should contain the console-variable assignment without the plus sign.
Use the console for a quick, temporary test
You can type the setting into the dedicated-server console while the process is running:
hostname "Temporary Test Name"
This immediately tests whether the running server accepts the variable, but it is not a permanent change. The setting reverts to the configured or default value after the next restart unless you also save the line in server.cfg or the startup command. Treat console entry as a diagnostic step, not as your final configuration.
Hostname versus sv_hostname
Most CS2 server instructions use hostname, including guides from Host Havoc, BisectHosting, XGamingServer, Shattered, Hetzner, and a Steam community guide. Another guide uses sv_hostname in server.cfg. The available Valve Developer Community excerpt does not confirm sv_hostname as a CS2 console variable.
Start with the documented form:
hostname "My CS2 Server"
If the name does not change, verify that the file is the one actually loaded and that the server was restarted. You can then test whether your build exposes the alternate variable by entering sv_hostname "My CS2 Server" in the console and checking the result. Do not keep both variables as competing permanent definitions until you know which one your installation recognizes.
Rank #4
- Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
- Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
- 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
- Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
- USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC
Verify that the new name is active
Search the server’s available variables
In the dedicated-server console, run:
find hostname
This searches matching console-variable names and helps reveal which hostname-related setting your server exposes. It does not by itself prove that the desired value was loaded, so continue with a live check.
Check from a connected client
Connect to the server, open the developer console with the tilde key (~), and run:
status
The first line of the status output is reported as the active hostname. Compare it with the text in server.cfg, including spaces and capitalization.
Allow for browser refresh time
A restarted server may not show its new name in the public browser immediately. Several guides note that propagation can take several minutes, but an exact duration is not established. Use the console or a direct connection to verify the value before assuming the configuration failed.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Troubleshooting: when the old name remains
The file was edited in the wrong directory
Search from the actual server installation for game/csgo/cfg/server.cfg. Panel users should confirm the container path shown by their provider; self-hosted users should confirm which installation directory their startup script uses. Editing a second CS2 copy has no effect on the running process.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Clear out junk files and repair common Windows errors3Fix the driver behind crashes, sound loss and screen glitchesThe server was not restarted
A saved file is not necessarily re-read by an already running process. Stop and start the server, or use the panel’s Restart action, then check the console output and run status from a client.
A startup setting is overriding the file
Inspect the launch script, service definition, container command, or panel startup field for +hostname. Change or remove the conflicting value, then restart. Keep one clearly documented persistent definition so a later deployment does not silently restore the old name.
Best Value
- Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
- Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
- Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
- Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
- Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.
The configuration line is malformed
Use straight quotation marks, keep the assignment on one line, and place the name after a single space. A safe example is:
hostname "North America PUGs | Weekends"
Save as plain text and make sure the filename is exactly server.cfg. Avoid copying typographic “smart quotes” from a word processor.
Free tools Windows power users keep installed
One-click scans. No signup required.
The panel regenerates server.cfg
If your line disappears after a restart, look for a panel setting that generates the file from a template or advanced configuration field. Put the hostname in that managed field or disable the overwrite mechanism, then restart and verify again.
The name is correct in the console but stale in the browser
Use status while connected to determine whether the server itself has the new value. If it does, wait for the browser listing to refresh and reconnect before changing configuration again. Repeated edits during propagation can make it harder to identify the actual active value.
Practical naming and maintenance checklist
- Choose a concise name that identifies the community, game mode, or region without pretending to be an official Valve server.
- Keep the value inside one pair of ordinary double quotation marks.
- Use one authoritative
hostnameline rather than several duplicates. - Record whether the name is maintained in
server.cfg, a launch script, or a hosting-panel template. - Stop a panel-managed server before editing its files.
- Restart after saving a persistent change.
- Verify with
find hostname, then connect and runstatus. - Wait for browser propagation before diagnosing a problem that is only visible in the public listing.
Recommended workflow by server type
| Your setup | Recommended action | What to verify |
|---|---|---|
| Panel-managed server with file manager | Stop server, edit game/csgo/cfg/server.cfg, save, restart |
The saved line remains after restart |
| Self-hosted Linux SteamCMD server | Edit the installation’s game/csgo/cfg/server.cfg, then launch with your normal cs2.sh workflow |
The startup script points to the same installation you edited |
| Scripted or containerized deployment | Add +hostname "Your Server Name" to the persistent launch command |
A redeploy preserves the parameter |
| Testing an unfamiliar installation | Run hostname "Test Name" in the server console first |
The live server changes before you commit the persistent setting |
Frequently asked questions
Does changing the name require reinstalling CS2?
No. The name is a server configuration value. Editing the existing configuration or startup command is sufficient.
Can I change the name while players are connected?
You can test the console command while the process is running, but a persistent file or launch change requires a restart to be loaded reliably. Plan the restart for a time that minimizes disruption.
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 →Why does the server browser still show the old name?
First compare the connected server’s status output with your intended value. If the live value is correct, the browser listing may simply be waiting for a refresh; the available guidance does not establish a fixed propagation time.
What if hostname is not recognized?
Run find hostname, confirm that you edited the active installation, and check for a startup override. Because one guide uses sv_hostname while most CS2 instructions use hostname, you may test the alternate variable only after those checks.
Quick Recap
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.




