Get the client IP address

Occasional Contributor

Hi all,

In our current environment we're using thin clients at several sites, connecting to a Citrix farm. By making calls to wtsapi32.dll, we retrieve the IP address of the thin client, which enables us to determine its physical location and do all kinds of stuff specific for that location, including mapping printers and drives, but also logging for tracing and accountability.
Using the Remote Desktop app for WVD however, the client IP address is never returned. It designates the IP address family as AF_UNSPEC.
I can understand why the wtsapi32.dll does not work in this scenario, since the client does not directly connect to the WVD, but is there another way to retrieve the client IP address? It's important it can be read from within the context and session of the user. 

1 Reply

@Donkz Did you ever figure out how to get the client IP address from WVD?  We are currently having the same issues.