From Valve Developer Community
Revision as of 19:06, 16 November 2016 by Joheskiller (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This string ConVar changes the name of your server as it would appear on the server list.

Realistically this could be used in both singleplayer and multiplayer games, but it's useless for singleplayer anyways. In addition, hostname can contain up to 64 characters, not more.

Note:Command parameters are described inside the < and > characters.

Syntax: hostname <string>

You need to add quotation marks if there is spaces in the hostname. For example: hostname "My server name".