1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-07 13:48:00 -05:00
RaidMax 3e186ca07a
Add ResolvedExternalIPAddress to API and Master Communication (#365)
* Feature: Add ResolvedExternalIPAddress to API and Master Communication

This commit introduces the `ResolvedExternalIPAddress` property to enhance IP address reporting.

1.  **Server API (`WebfrontCore/Controllers/API/Server.cs`):**
    The `ResolvedExternalIPAddress` property has been added to the JSON
    responses for the `/api/server` endpoints. This property is nullable
    and contains the IPv4 string value of the manager's external IP address
    if the server's resolved IP endpoint is an internal address. Otherwise,
    it is null.

2.  **Master Server Communication (`MasterCommunication.cs` and `ApiServer.cs`):**
    - The `ApiServer` DTO (in `Application/API/Master/ApiServer.cs`) now
      includes the `ResolvedExternalIPAddress` property (serialized as
      `resolved_external_ip_address`).
    - The `UploadStatus` method in `Application/Misc/MasterCommunication.cs`
      now populates this property for each server being reported to the
      master server, using the same logic (external IP if server's own
      resolved IP is internal).

This provides more comprehensive IP address information both through the
web API and to the master server.

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2025-05-24 15:36:24 -05:00
2025-04-14 21:34:22 -05:00
2025-04-14 21:34:22 -05:00
2025-04-14 21:34:22 -05:00
2018-02-06 23:23:17 -06:00
2024-07-04 15:02:16 -05:00

IW4MAdmin GitHub license GitHub stars

ko-fi

About

IW4MAdmin is an administration tool for IW4x, IW6x, Pluto T6, Pluto IW5, CoD4x, TeknoMW3, and most Call of Duty® dedicated servers. It allows complete control of your server; from changing maps, to banning players, IW4MAdmin monitors and records activity on your server(s). With plugin support, extending its functionality is a breeze.

Download

Latest binary builds are always available at:

Setup

IW4MAdmin requires minimal effort to get up and running.

Prerequisites

Installation

  1. Install ASP.NET Core Runtime (Hosting Bundle)
  2. Extract IW4MAdmin-<version>.zip

Launching

Windows

  1. Run StartIW4MAdmin.cmd
  2. Configure IW4MAdmin

Linux

  1. Execute chmod +x StartIW4MAdmin.sh
  2. Run ./StartIW4MAdmin.sh
  3. Configure IW4MAdmin

First Steps

  1. Go ingame and type via the ingame chat !owner to claim ownership (full admin permissions) of the server
  2. Login to the webfront by accessing http://<machine_ip_here>:1624 and clicking on the key icon
    • You will need to retrieve your login credentials by typing !rt ingame

Updating

Manually

  1. Download the latest version of IW4MAdmin

  2. Extract the newer version of IW4MAdmin into pre-existing IW4MAdmin folder and overwrite existing files

    Your configuration and database will be saved

OR
Use the provided UpdateIW4MAdmin script to download and install automatically

Argument Windows (Linux) Description
-Silent (s) Do not prompt for any user input
-Clean (c) Clean unneeded files listed in _delete.txt after update
-Verified (v) Only update releases in the verified stream
-Directory (d) Directory to install to

Help

Feel free to join the IW4MAdmin Discord
If you come across an issue, bug, or feature request please post an issue

Explore the wiki to find more information.

Description
No description provided
Readme 72 MiB
Languages
C# 72.8%
JavaScript 19.6%
HTML 6.6%
CSS 0.6%
Batchfile 0.3%