• This guide will walk you through the process of setting up an HMW server for Call of Duty: Modern Warfare Remastered (Multiplayer) HMW Mod. The guide includes all required files, installation steps, configuration steps, firewall steps, and instructions for installing IW4MAdmin to manage your server.

Important Note:
We do not provide the official Call of Duty: Modern Warfare Remastered game files. You must own and install the game separately before setting up the server. This guide assumes you have already installed the game on your machine.

Requirements:

  • Copy of Call of Duty: Modern Warfare Remastered (Multiplayer): Ensure it's installed.
  • HMW Launcher: Download the HMW launcher files.
  • HMW Server Files.
  • IW4MAdmin version 2024.8.16.1 (or newer).
  • notepad++ (to make it easier to edit server_default.cfg).

Install the HMW Mod:

  1. Unpack all the files inside the .zip archive into the directory of the game.
  2. Run HMW Launcher to install the mod.
  3. Once the 'Verify game files' button appears, click on it to download the missing mod files.
  4. When the files are finished downloading, click on the 'Reverify game files' button.
  5. If the files have finished verifying, and you have received the successful verification message, you can now close the Launcher (Launcher will only be used to keep the mod/server up to date).

Example

Pasted image 20241125230811.png
Pasted image 20241125231045.png

Install Server Hosting Files:

  1. After installing the HMW mod, ensure you have the necessary server hosting files (downloaded above).
  2. Place the server_default.bat file into the root directory of the game installation.
  3. Place the server_default.cfg file into the main folder.
  4. Place the auto_bots.cfg file into the user_scripts\mp location (if you do not have a folder named user_scripts, make one, then another folder inside it named mp).

Single Server:

  • You will need one server_default.bat file and one server_default.cfg file to configure your single server instance.
  • If you do not plan on hosting more than one server skip the below steps on how to have multiple servers.

Example on where the server_default.bat should be:

Pasted image 20241125232014.png

Example on where the server_default.cfg should be:

Pasted image 20241125231819.png

Example on where the auto_bots.cfg should be:

Pasted image 20241125232050.png

Multiple Servers:

  • For multiple servers, create a separate server_default.bat file and server_default.cfg file for each server. Rename them for easy identification, e.g.:

    • server1_default.bat and server1_default.cfg – Main server.
    • server2_default.bat and server2_default.cfg – Dedicated server for a specific game mode (i.e. Capture the Flag).
    • server3_default.bat and server3_default.cfg – For community events or special game nights.
  • In each server_default.bat file:

    1. Edit it to point to the corresponding server_default.cfg file for that server.
    2. Modify the port used for each server_default.bat file to ensure they use different ports.

Example server1_default.bat content:

@echo off
::Name of the server shown in the title of the cmd window. This will NOT bet shown ingame.
set name=HMW Dedicated - Default
::Name of the config file the server should use. (default: server.cfg)
set cfg=server1_default.cfg
::Port used by the server (default: 27016)
set port=27016
::Only change this when you don't want to keep the bat files in the game folder. MOST WON'T NEED TO EDIT THIS!
set gamepath=%cd%


title HMW - %name% - Server restarter
echo Server "%name%" will load %cfg% and listen on port %port% UDP!
echo To shut down the server close this window first!
echo (%date%)  -  (%time%) %name% server start.

:server
start /wait /abovenormal hmw-mod.exe "%gamepath%" -dedicated -memoryfix +exec "%cfg%" +set net_port %port% +map_rotate
echo (%date%)  -  (%time%) WARNING: %name% server closed or dropped... server restarts.
goto server

Example server2_default.bat content:

@echo off
::Name of the server shown in the title of the cmd window. This will NOT bet shown ingame.
set name=HMW Dedicated - Default
::Name of the config file the server should use. (default: server.cfg)
set cfg=server2_default.cfg
::Port used by the server (default: 27016)
set port=27017
::Only change this when you don't want to keep the bat files in the game folder. MOST WON'T NEED TO EDIT THIS!
set gamepath=%cd%


title HMW - %name% - Server restarter
echo Server "%name%" will load %cfg% and listen on port %port% UDP!
echo To shut down the server close this window first!
echo (%date%)  -  (%time%) %name% server start.

:server
start /wait /abovenormal hmw-mod.exe "%gamepath%" -dedicated -memoryfix +exec "%cfg%" +set net_port %port% +map_rotate
echo (%date%)  -  (%time%) WARNING: %name% server closed or dropped... server restarts.
goto server

Set Up Firewall Rules:

Open Windows Defender Firewall:

  1. Go to Control Panel > System and Security > Windows Defender Firewall.
  2. Click on 🛡️ Advanced settings (left hand side).

Create Inbound Rules:

TCP Rule:

  1. Click on Inbound Rules > New Rule.
  2. Select Port, then choose TCP and specify the port range 27016-27017.
  3. Allow the connection and name the rule (e.g. "HMW TCP Server").

UDP Rule:

  1. Repeat the process for UDP, specifying the same port range 27016-27017.
  2. Allow the connection and name the rule (e.g. "HMW UDP Server").

Example on how firewall rules should look like:

Pasted image 20241125205357.png
Pasted image 20241125205318.png

For Multiple Servers:

  • If you want to host more than one server, expand the port range to how many servers you plan on hosting, for example 27016-27030.
  • This gives you a total of 15 separate ports (from 27016 to 27030, inclusive), allowing you to host multiple instances of the server simultaneously.

Configuring server_default.cfg:

  • To edit this .cfg more easily, it is advised to install notepad++, however you can use the standard Notepad that comes with Windows.
  • The right hand side text within the .cfg will explain what each setting does, the guide will still show the basic changes needed to have a fully working server.
  • Anything commented out (with a //) will be disabled, so make sure that, when changing settings like gametype and map rotation, to only have one set at a time.
  • If you have more than one set sv_maprotation at a time it will not load the gametype or map you chose, and will default to War instead.
  1. Open the .cfg in notepad++ or the standard Notepad that comes with Windows.
  2. Change the name of the server to what you want; it's set to ^2Default ^7Server when you first open the .cfg.
  3. Under BASIC CONFIGURATION, you can set a password for the server so only people who know the password can join. If you want anyone to be able join, leave this field blank.

Pasted image 20241126172743.png

Pasted image 20241126172910.png

  • At the bottom of this .cfg you will find the setting for changing gametype and maps that players will be able to vote on.

IW4ADMIN Settings

  • IW4ADMIN will need an rcon_password (this is not the same as a server password).
  1. Find set rcon_password and within the quotation marks (" ") set a password to use with IW4ADMIN, i.e. "testserver" (each server you set up will need this to be set up if you are using IW4ADMIN).
  2. Find set g_log, which will show "logs\default.log". You can use the server name for this so its easier to know which log is for which server, i.e. "logs\yourservername.log".

Pasted image 20241126173425.png

Start the Server:

  • Double-click the desired server_default.bat file in the game directory to launch the server.

Set Up IW4MAdmin:

  • IW4MAdmin is an admin management tool designed to help server administrators manage their server more efficiently. This tool allows you to monitor server status, ban players, manage server settings, and more, all through a web interface, or in-game commands.
  1. When you first start IW4MAdmin you will be asked some Yes/No questions for features you can have on your server. You can choose whatever you want here, this does not need to be the same as below.
  2. Make sure to answer 'No' for 'Enable multiple owners?' if you only want yourself to have owner rights. If you want a friend to have permissions as well, answer 'Yes', but it recommended to have this turned off.

Pasted image 20241204224657.png

  • The next step is to choose the client you will be using with IW4MAdmin. You will need to choose 6] for H2M, as HMW uses the original H2M-Mod to function.
    Pasted image 20241204225427.png

  • Once you have chosen H2M-Mod Parser (the sixth option) IW4MAdmin will now ask if you would like it to automatically determine your server IP; choose 'No', because it will not determine the IP correctly.

  1. Once you have selected 'No', you can input your IP address.
  2. It will then ask for the port that your server will be using; the first one will be the default 27016 port.
  3. It will then ask for the RCon password, you will need to put whatever you set this as in the .cfg file.
  • If you are only hosting one server you can input 'No' and continue with the rest of the set up for IW4MAdmin.

  • If you are hosting more than one server you will need to input 'Yes' and follow the steps above to set up the servers you have. Make sure the port is a number higher for each server you'll host, i.e. 27017, 27018, and so on.

  • Once you have finished setting up the IP and ports, it will try to connect to the servers. Make sure you have them running before continuing.
    Pasted image 20241205002803.png
    Pasted image 20241205000955.png

  • You should now see IW4MAdmin has successfully established a connection with your HMW server.

  1. You will now need to join the server, see below example for the connect command.

    connect <Your-IP-Address>:<Port>
    
  • Example:

    connect 1.1.1.1:27016
    
  • If your server is password-protected, see following example:

    connect 1.1.1.1:27016; password <your-password>
    
  1. Once you have joined the server, open the in-game chat, and type !owner into it; this will give you ownership of the server.
    Pasted image 20241205005313.png
  2. If you want to control the server using the webfront you can open a browser window and input the IP of your server with :1624 at the end, then hit Enter; see example below.
  • You will be taken to a webpage similar to this one, but will only see your own servers.
    Pasted image 20241205005854.png
  • To be able to control your server from this webfront, you will need to log in. To do this you will need to have two things: your client tag, and the token.
  1. Client ID: Whilst in the server, head over to the webfront. You will only see yourself on the server. Click on your name, and it will bring up your profile; in the search bar you will see a URL like :1624/Client/Profile/. At the end of this URL you will see your Client ID, i.e. :1624/Client/Profile/55.
  • Keep note of this number and move on to the next step.
    Pasted image 20241205010328.png
    Pasted image 20241205010658.png
  1. Token: Whilst in the server, use the command !rt in chat, and keep note of the token it gives you.
    Pasted image 20241205011442.png

  2. Back on the webfront, click Log In (on the left hand side), and input the Client ID and Token you received. The token has a time limit, so if you don't do this fast enough you will have to get a new token from the server.

Regular Maintenance:

  • Keep the HMW launcher Updated.
  • Keep the VPS updated for optimal performance.

Requesting Server Key:

⚠ Server hosting keys are not available at this moment ⚠

  1. To list your server on the official HMW server browser, apply for the Server Host role on the Discord server, then request a server key from the HMW staff.
  2. Each server requires its own unique key. Once received, add it to the corresponding server_default.cfg file.
  • While listing on the official browser is optional, it provides greater visibility for you and your community.

  • If the server is not listed, share the connect command with your players:

    connect <Your-IP-Address>:<Port>
    
  • Example:

    connect 1.1.1.1:27016
    
  • If your server is password-protected, see following example:

    connect 1.1.1.1:27016; password <your-password>
    

Setting Up RestartOnCrash (Coming Soon)

  • Instructions on setting up the RestartOnCrash program will be added soon. This will ensure your server restarts automatically in case of a crash.

HMW Server Setup Guide