Mordhau is a multiplayer medieval melee game that offers intense combat, large-scale battles, and a wide variety of weapons and fighting styles. If you want to host your own dedicated server for Mordhau on AnonVM, this guide will walk you through the installation process. Setting up a dedicated server allows you to have full control over game settings, mods, and who can join your server.
Prerequisites
Before starting, ensure you have:
- A VPS from AnonVM with at least 4 GB of RAM, 2 CPU cores, and 20 GB of disk space.
- SSH access to your VPS.
- Basic knowledge of Linux commands.
- SteamCMD installed (or follow our previous guides to install it).
Step 1: Access Your AnonVM VPS
- Log in to your AnonVM account and navigate to your VPS.
- Use an SSH client like PuTTY (Windows) or your terminal (Linux/Mac) to connect to your VPS:
your-vps-ip
with the actual IP address of your VPS and enter your password when prompted.
Replace
Step 2: Install Required Dependencies
Mordhau requires some libraries and utilities to run correctly.
-
Update your system:
-
Install necessary libraries:
These are the basic libraries that ensure your server runs properly.
Step 3: Install SteamCMD
SteamCMD is the command-line tool you'll use to install the Mordhau server files.
-
Create a directory for SteamCMD:
-
Download and extract SteamCMD:
-
Verify the installation:
You should see the SteamCMD console. Type
quit
to exit the console.
Step 4: Download Mordhau Server Files
-
Log in to SteamCMD:
-
Set the installation directory for the Mordhau server:
-
Download the Mordhau server files:
This will download the latest version of the Mordhau server. The download might take some time depending on your internet connection.
Step 5: Configure the Mordhau Server
Once the server files are installed, you need to configure your server settings.
-
Navigate to the server directory:
-
Edit the server settings: Open the
MordhauServerSettings.ini
file using a text editor likenano
:Some key settings you may want to modify:
- ServerName: The name of your server.
- MaxPlayers: Set the maximum number of players allowed.
- GameMode: Set the desired game mode (e.g., Frontline, Horde, etc.).
- Password: (Optional) If you want to secure your server with a password.
After making changes, save the file by pressing
CTRL + X
, thenY
to confirm.
Step 6: Open Required Ports
For players to join your server, you need to open the necessary ports on your VPS’s firewall.
Mordhau requires the following ports:
- TCP/UDP 7777: Game server port
- UDP 27015: Steam query port
- UDP 15000: Additional query port
-
Open the necessary ports using
ufw
(Uncomplicated Firewall):This ensures that players can connect to your Mordhau server.
Step 7: Start the Mordhau Server
Now that everything is configured, it’s time to launch the server.
-
Start the server in a screen session: This will allow your server to run in the background even if you disconnect from SSH.
-
Run the server: Use the following command to start the Mordhau server:
-
Detach from the screen session: Press
CTRL + A
, thenD
to detach and leave the server running in the background. -
Reattach to the session: If you need to view the server console, use:
Step 8: Connect to Your Server
To join your Mordhau server from the game client:
- Launch Mordhau and go to the Multiplayer section.
- Use the Direct Connect option and enter your server’s IP address and port (
your-vps-ip:7777
). - If you set a password, you will be prompted to enter it.
Step 9: Update Your Server
To keep your server up to date, simply run the following commands:
-
Log in to SteamCMD:
-
Check for updates:
This will update the server to the latest version of Mordhau.
Conclusion
Congratulations! You’ve successfully set up a Mordhau dedicated server on AnonVM. With your own server, you can customize game modes, settings, and mods to create the ideal Mordhau experience for your friends or the community. Be sure to keep your server updated and manage it regularly to ensure the best performance.