Hosting a Server
There are three disctinct ways of hosting a server.
Contents
Using the ingame UI
This is the easiest way to go about hosting a server. It allows the start of the Listen and Dedicated Server.
- In the Main Menu select either "[Inter]Net Game..." or "Lan Game...".
- Click the "Host Game" button.
- Click "Server Mode" to select between Listen and Dedicated Server.
Notes:
- Using a Dedicated Server is recommended due to the increased stability. You can start up HX again afterwards and join your local Dedicated Server.
- A Net Game will still be joinable from the local LAN.
Using the HX.exe executable
This will only allow the start of a Dedicated server. The graphical frontend will consist of a tray icon and a log window.
You need to start HX.exe with additional commandline parameters. If you are unsure how to do this, you can look up how to add additional commandline parameters to a Link or basic use of the windows console or powershell (change directories, launch executables, etc.)
.\hx.exe server 01_NYC_UNATCOIsland?[Mutator=<mutatorlist>]
Where <mutatorlist> is an optional comma seperated list of Mutators to use (e.g. "hx.exe server 01_NYC_UNATCOIsland" to start without any Mutators).
Using the HCC.exe executable
This will only allow the start of a Dedicated server. This is a pure console application.
hcc.exe server 01_NYC_UNATCOIsland?[Mutator=<mutatorlist>]
You can use this on a linux (after installing wine) with wineconsole to run on a headless server.
Further Notes
You still need to make sure your firewall settings, router settings and ISP allow other people to reach your server over the internet. See Ports for details.