This topic describes how to obtain the originating IP addresses of clients that access a game running on a Linux server.
Integrate a TCP Option Address (TOA) module by using application hooks
Integrate a TOA module into application code
The TOA module of GameShield installs a process on an origin server. The process listens on UDP port 48888. A game process passes non-real port numbers and IP addresses to port 48888 by using a specific format and retrieves port numbers and originating IP addresses from the process.
Usage notes
- You must ensure that UDP port 48888 is not disabled by the firewall on the localhost of 127.0.0.1.
- When you configure settings to allow access to the endpoint of 127.0.0.1:48888 over UDP, you must specify a timeout period. This setting helps avoid denial of services due to unexpected issues.
- You can retrieve originating IP addresses by using the bypass method. In theory, there is only a low probability that retrieving originating IP addresses fails. However, you still need to prepare related solutions when an application process fails to retrieve originating IP addresses.
- In a server-client connection, data that is related to IP addresses and ports is deleted when one of the parties closes the connection socket. You must re-establish a connection between the server and the client to create data that relates to IP addresses and ports.
For more information, see the instructions that are provided in the TOA archive. You can also contact GameShield technical support.