Getting the IP from a HMI client on login

Hello,
For logging purposes we want to register what users log in from what device. We can get the username from the local HMI variables.
The IP of logged in client can be seen in the HMI_STATUS2.CLIENTS[1].IP_ADDRESS variable. However all the connected clients communicate to this same CLIENTS element, because the STATION_ID is the default 0. From what I can see, this can only be changed by passing the station id variable in the URL. Is there a way to change this variable from the PLC?
Is there a way the HMI client can send the IP address of the device the HMI is opened on to a PLC variable?

Hello,
The HMI_STATUS2.CLIENTS array represents connected HMI clients. The STATION_ID is typically defined when the HMI connects, through the URL parameters (e.g., ?ehmi/hmiapp.html?StationID=2&language=en).
This cannot be changed directly from the PLC as it is determined by the client (HMI runtime).
Workaround with CLIENTS Array
Use the HMI_STATUS2.CLIENTS.IP_ADDRESS directly to determine the IP addresses of connected clients. If STATION_ID is not unique, map IP addresses in the PLC to a distinct identifier for each client.
Beste regards,
Jorne