This article's documentation is for anything that uses the Source engine. Click here for more information.

Hostname: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Nesciuse moved page Hostname/en to Hostname without leaving a redirect: Move en subpage to basepage)
 
(10 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{wrongtitle|title=hostname}}
{{LanguageBar}}
[[Category:Glossary]] [[Category:Console Variables]]
{{this is a|console variable|name=hostname}}
 
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.


Realistically this could be used in both singleplayer and multiplayer games, but it's useless for singleplayer anyways.
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>}}
{{Syntax|hostname <string>}}
You need to add quotation marks if there is spaces in the hostname. For example: ''hostname "My server name"''.

Latest revision as of 07:28, 12 July 2024

English (en)Русский (ru)Translate (Translate)

hostname is a console variable available in all Source Source games. 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".