[Mod] GateServer extension for "offline" stall server (StallServer)
This modification of GateServer is designed to determine the IP addresses of clients that are behind the "offline" stall server (StallServer). Since StallServer is essentially a proxy server through which the client (Game) connects to the game server (GateServer), the GateServer will not "see" the real IP address of the client, and in logs and database all players will have the same StallServer IP address (for example, 127.0.0.1 if both GateServer and StallServer are running on the same machine). To solve this problem, StallServer writes the client's IP address to the login packet, which requires GateServer to be modified to read the IP address from the packet and bind it to the client.
Requirements
Installed mod loading system for server and client (PKOdev.NET mod loader).
Modification information
Name: pkodev.mod.stallip;
Version: 1.0;
Author: V3ct0r;
Type: for client (Game.exe);
Supported executable .exe files: GATESERVER_138.
Installation
Place the mod DLL "pkodev.mod.stallip.gate.138.dll" into the "mods" folder in root GateServer directory.
Download
1) Binary release (.dll);
2) The source code of the mod for Visual Studio 2019 Community (C++).
If you encounter any problem, bug or have any questions, then feel free to write in this thread.