Hostname: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Pee moved page Hostname to Hostname/en)
No edit summary
Line 1: Line 1:
{{lang}}{{CVar}}
This [[string]] [[ConVar]] changes the name of your server as it would appear on the server list.
This [[string]] [[ConVar]] changes the name of your server as it would appear on the server list.


Line 7: Line 6:


You need to add quotation marks if there is spaces in the hostname. For example: ''hostname "My server name"''.
You need to add quotation marks if there is spaces in the hostname. For example: ''hostname "My server name"''.
[[Category:Console Variables]]

Revision as of 12:36, 1 July 2023

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.

Syntax: hostname <string>

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