hostport Command

The port the server should run on. We recommend keeping the default. You can run multiple servers on the same IP by using different ports that are not in use.

Category
Network
Game
CS2 + CSGO
Scope
Global
Cheats
Not Required

Command Arguments

These are the parameters hostport uses. Required arguments must be provided for the command to work.

<Port>

StringRequired

The port for the server to run on. We recommend you leave the default 27015.

Default: 27015

Command Builder

Interactive command builder that generates a valid hostport command for in-game use.

All required arguments filled!

Generated Command

hostport 27015

Command Information

Learn more about how to use hostport effectively.

Argument Data Types

Arguments can be of type String, Number, Bool, or Enum. Provide the correct type for the command to execute correctly.

Required Arguments

Arguments marked as Required must be provided for the command to work. Optional arguments can be left blank.

Command Scope

Commands can be Client-sided or Server-sided. Client-sided commands affect only your game client, while server-sided commands affect the entire server.

Cheats Required

Some commands require sv_cheats to be enabled. If a command has this requirement, it will not run on servers where cheats are disabled.