This topic describes how to obtain real IP addresses of clients that access a game running on a Linux server.
Integrate a TOA module by using application hooks
Integrate a TOA module by modifying 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 real IP addresses from the process.
Precautions
- You must make sure 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 through UDP, you must specify a timeout period. This setting helps avoid denial of services due to unexpected issues.
- You can retrieve real IP addresses by using the bypass method. In theory, retrieving real IP addresses seldom fails. However, you still need to prepare related solutions when an application process fails to retrieve real IP addresses.
- In a server-client connection, data that relates 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.