How to Set Up a Mordhau Dedicated Server on AnonVM Hosting

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

  1. Log in to your AnonVM account and navigate to your VPS.
  2. Use an SSH client like PuTTY (Windows) or your terminal (Linux/Mac) to connect to your VPS:
     
    ssh root@your-vps-ip
    Replace your-vps-ip with the actual IP address of your VPS and enter your password when prompted.

Step 2: Install Required Dependencies

Mordhau requires some libraries and utilities to run correctly.

  1. Update your system:

     
    apt-get update && apt-get upgrade -y
  2. Install necessary libraries:

     
    apt-get install wget curl unzip screen lib32gcc1 -y

    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.

  1. Create a directory for SteamCMD:

     
    mkdir -p /home/steam cd /home/steam
  2. Download and extract SteamCMD:

     
    wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz tar -xvzf steamcmd_linux.tar.gz
  3. Verify the installation:

     
    ./steamcmd.sh

    You should see the SteamCMD console. Type quit to exit the console.

Step 4: Download Mordhau Server Files

  1. Log in to SteamCMD:

     
    ./steamcmd.sh login anonymous
  2. Set the installation directory for the Mordhau server:

     
    force_install_dir ./mordhau_server
  3. Download the Mordhau server files:

     
    app_update 629800 validate

    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.

  1. Navigate to the server directory:

     
    cd /home/steam/mordhau_server
  2. Edit the server settings: Open the MordhauServerSettings.ini file using a text editor like nano:

     
    nano MordhauServerSettings.ini

    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, then Y 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
  1. Open the necessary ports using ufw (Uncomplicated Firewall):

     
    ufw allow 7777/udp ufw allow 27015/udp ufw allow 15000/udp ufw reload

    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.

  1. Start the server in a screen session: This will allow your server to run in the background even if you disconnect from SSH.

     
    screen -S mordhau_server
  2. Run the server: Use the following command to start the Mordhau server:

     
    ./MordhauServer -ini=Config/LinuxServer/ServerSettings.ini
  3. Detach from the screen session: Press CTRL + A, then D to detach and leave the server running in the background.

  4. Reattach to the session: If you need to view the server console, use:

     
    screen -r mordhau_server

Step 8: Connect to Your Server

To join your Mordhau server from the game client:

  1. Launch Mordhau and go to the Multiplayer section.
  2. Use the Direct Connect option and enter your server’s IP address and port (your-vps-ip:7777).
  3. 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:

  1. Log in to SteamCMD:

     
    ./steamcmd.sh login anonymous
  2. Check for updates:

     
    force_install_dir ./mordhau_server app_update 629800 validate

    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.

Was this answer helpful? 0 Users Found This Useful (0 Votes)

Powered by WHMCompleteSolution