Command Profile

HOSTNAME

CS2 CS:GO

The hostname for the server to use (this is your server domain).

Syntax
hostname [Hostname] [hostname mycsgoserver.com]

Description

The hostname for the server to use (this is your server domain).

How To Use hostname

  1. Enable the developer console in Counter-Strike settings.
  2. Open the console with the tilde key (~).
  3. Enter hostname [Hostname] [hostname mycsgoserver.com], replacing bracketed arguments with the value you want, then press Enter.

This command is listed as compatible with Counter-Strike 2.

Syntax And Arguments

hostname [Hostname] [hostname mycsgoserver.com]
Hostname Your desired server hostname.
hostname mycsgoserver.com This command would set your server's hostname to mycsgoserver.com.