S        This expression returns the IP address of the currently selected client.

The IP is set during a connection request event, and stays the same until the disconnect event finishes.


Local or LAN IP address will be returned if the client connected via local/LAN server IP, but those clients can still connect via the server's remote IP, if port forwarding is used.

IP addresses can change for clients (dynamic IP), but are usually consistent; this is covered more under the IP section of Hosting a server.