HOSTPORT

CS2 CS:GO

Description

The port your server should run on. We recommend you keep this as default. You can run multiple servers on the same IP address if you change this port to a port that isn't in use.

Syntax

hostport [Port] [hostport 27015] [hostport 26123]

Arguments

Port The port for the server to run on. We recommend you leave this as default: 27015.
hostport 27015 This command would set your server's port to 27015 (default, recommended).
hostport 26123 This command would set your server's port to 26123, if it is not currently in use.

Related commands

host_filtered_time_report
This command only works on dedicated servers. It will time the amount of time that was spent idle in the previous frame (ms).
host_flush_threshold
This command will set the memory theshold for the which host should flush caches between server instances. When below this value, the caches will be flushed.
host_framerate
This command will change the "frame rate" of the host (server). Lower numbers will mean time passes faster, higher numbers will mean time passes slower. Set to 0 to disable.
host_info_show
This command can be used to change the amount of information that is shown when your server is queried (e.g. by server lists, the community server browser, etc). See argument information for options. 1 is the default setting for this command.
host_map
This command will print to console the name of the map you are currently playing on. This can also be used to change the "host_map" that appears in server queries if you provide a map name as an argument.
host_name_store
This command will set whether or not the server's hostname is recorded in game events and on GOTV (demos and live).
host_players_show
This command will set how the playercount is disclosed when your server is queried. See argument information for options.
host_reset_config
This command will reset your host's config. NOTE: You cannot undo the effect of this command, so make sure to save your host's config before using this.