Obtaining Details of Citrix Sessions and Servers That Clients Are Using
From the server side it's really easy to get details of which clients have sessions with which Citrix servers, simply using the Citrix Admin console, but if you want to identify all Citrix sessions in operation from a given client PC and which Citrix servers those session are connected to, it less than simple.
Using the (free) Microsoft Technet Sysinternals® tcpvcon.exe from Mark Russinovich I can return the IP address of all attached Citrix servers (which I can later resolve to server names if I choose.)
The command is:
tcpvcon.exe -c -n | find "wfica32"
which returns strings like these ...
... for each connected Citrix server
The various fields being:
Protocol, executable, PID, connection-state, local-IP, remote-IP
with local-IP being the client IP address where tcpvcon is running and remote-IP being the Citrix server(s)