hostport Command

Explore usage, syntax, and examples for the hostport CS2 developer console command.

hostport

CS2 and CSGO

Command

hostport

<Port>

Sets the port number your server will use. Keep the default port unless you need to run multiple servers on the same IP, then choose a different unused port.

<Port>

Specify the port number for the server. Default is 27015, which is recommended.

sv_cheats Required

No

Client or Server Command

Client

Server

Default Value

27015

hostport Generator

Command

hostport

<Port>
0/1 Arguments Selected

Set the options below to auto-generate your command. When everything looks good, click the Copy button and paste it into your in-game console.