Skip to content

Running dedicated server on Windows

Andrey Akhmichin edited this page Jun 13, 2018 · 7 revisions

Getting server files

  • Download Half-Life Dedicated Server from Steam or SteamCMD (this includes cstrike files too)
  • Download latest win32 release
  • Copy SteamApps/common/Half-Life folder to your server directory
  • Place xash3d binaries to Half-Life directory

Configuring server

Use server.cfg to set up server configuration. Add following lines if needed:

set defaultmap <mapname>
set port 27015
set rcon_password <secret password>

Server will not run without valid defaultmap value. Change port number if needed. rcon_password is optional, but you will not able to control background server without it

Running server

  • First of all run cmd.exe from menu "start->execute..." or create shortcut for xash.exe. Also, you can create .bat file.
  • Type /path/to/xash.exe -dedicated -dev 3 in cmd console, .bat file or shortcut properties and run (xash_vc.exe or xash_mingw.exe if xash.exe does not exist)
  • Use Windows Task Scheduler to set up background task for server or register it as Windows Service