CS2 & CS:GO hostfile Command

CS:GO & CS2 Compatible
hostfile <File Name>

This command can be used to set the hosts file (default is hosts.txt). If no argument is specified, this command will print to console the name of the hosts file the server is currently using.

Argument Information

The syntax for this command is as follows:
Name Description
File Name

Optional - if not specified, the name of the hostfile the server is currently using will be printed to console. The name of the file you wish to set as the server's hostfile.

Extra Information

Find additional information relating to this command below.
sv_cheats Required
No
Client or Server Command
Server
Default Value
host.txt
Total CS is the home of CS2 commands We boast the only complete, up-to-date database of all CS2 console commands. View All CS2 Commands
CS2 player
IPS

Command Generator

Adjust the settings below to automatically generate a command. Once you've got everything right, hit the Copy button and paste it into the console in CS:GO.

hostfile
File Name
Click to Enable

hostfile Examples

hostfile hosts.txt

This command sets the hostfile to default.

hostfile examplehosts.txt

This command sets the hostfile the server will use to examplehosts.txt.