Difference between revisions of "Hosting a Server"

Line 1: Line 1:
There are several ways to go about hosting a server. One can do it from in game from the Host Game menu, or using a CMD line to launch it like so:
+
There are three disctinct ways of hosting a server.
  
hx.exe server 01_NYC_UNATCOIsland?Mutator=(mutatorname)
+
=== 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.
  
Which will give access to a built in Unreal commandline for putting in console commands and such. If limited to a command window only, one can also use HCC (a derivative of Unreal's UCC) to host a server, like so:
+
* 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.
  
hcc.exe server 01_NYC_UNATCOIsland?Mutator=(mutatorname)
+
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.
  
=== Linux ===
+
=== Using the HX.exe executable ===
After installing [https://www.winehq.org/ wine] You can use wineconsole to start hcc to launch the server commandlet.
+
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 [[Mutator|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.

Revision as of 11:04, 17 July 2024

There are three disctinct ways of hosting a server.

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.