hostip Command

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

hostip

CS2 and CSGO

Command

hostip

<IP><hostip 0.0.0.0><hostip localhost>

Set the server's IP address for hosting. If not set, the server will bind to all available IP addresses (0.0.0.0).

<IP>

Enter the IP address you want the server to bind to.

<hostip 0.0.0.0>

Set the server's IP to 0.0.0.0, allowing it to use all available network interfaces.

<hostip localhost>

Set the server's IP to localhost (127.0.0.1), restricting connections to your PC only.

sv_cheats Required

No

Client or Server Command

Client

Server

Default Value

0

hostip Generator

Command

hostip

<IP><hostip 0.0.0.0><hostip localhost>
0/3 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.