hostname 🖧 Server & Match Multiplayer Safe
Command Details
Description Set the server name displayed in browser
Category 🖧 Server & Match
sv_cheats Not required
Syntax
hostname <value> How to Use
1
Open the developer console by pressing the tilde key ~. If it does not open, enable it in Settings → Game → Enable Developer Console. See our Config Guide for full setup instructions.
2
Type hostname into the console and press Enter.
3
Set the server name displayed in browser. This command works in all game modes including competitive.
Frequently Asked Questions
What does hostname do in CS2?
Set the server name displayed in browser
Does hostname require sv_cheats?
No, hostname does not require sv_cheats. You can use it freely in any game mode, including competitive matchmaking and official Valve servers.
Can I use hostname in competitive?
Yes, hostname works in competitive matchmaking and all other game modes. It is a client-side command that does not require sv_cheats.