Page MenuHomeFeedback Tracker

Provide access to IP address in scripting
Reviewed, NormalPublic

Description

Hello, I would like to request to be able to get the IP address of a client in scripting. Currently I have to extract them from the logs by analyzing events as below:

19:55:38:063 RPL          : ServerImpl event: authenticating (identity=0x0000000B, address=123.123.123.123:59398)
19:55:38:662 RPL          : ServerImpl event: connected (identity=0x0000000B)
...
19:55:46:033 NETWORK      : ### Connecting player: connectionID=11, Name=
...
19:55:47:945  NETWORK      : ### Creating player: PlayerId=42, Name=SomePlayer

Unfortunately, those logs seem to sometimes overlap and it is not always trivial to find out which address is which client, especially when multiple players are connecting at a time. I would appreciate being able to obtain the address in script by querying the player manager or some other class.

Details

Severity
Feature
Resolution
Open
Reproducibility
Always
Operating System
Linux x64
Category
General

Event Timeline

Geez changed the task status from New to Reviewed.Apr 4 2023, 11:49 AM
Geez added a subscriber: Geez.Apr 5 2023, 12:48 PM

Hello bacon_8008.
Can you please let us know why do you need the IP? For what specific purpose?
Regards,
Geez

raxto added a subscriber: raxto.Apr 5 2023, 1:01 PM

The IP addresses are already visible in the server logs. Being able to access them through script would just make it easier as I could log them in a way that's easy for me to parse.

Some servers rely on identity ID for bans. Those bans don't work when Xbox users sign up for a trial on a new account, then we ban by blocking IP in firewall.