Reputation: 21751
So here's an interesting project:
We have a legacy system that runs in many locations via Citrix (brick and mortar stores)
We use a large farm for Citrix, so when you log in, you never know which server you will connect with.
We want to be able to programmatically determine which store the user is in.
I was thinking that if Citrix provides a way to use location services, then we might be able to use that. The trick would be that I need the location of the physical client machine, not the random Citrix session that is hosting the application.
Is there a way to do that? Is there any other way to help correlate the location?
Upvotes: 1
Views: 4065
Reputation: 95
It is possible in specific use cases to get the location of the client device. The Mobile SDK for Windows Apps supports determining location. However, it requires a mobile device and the server platform must be either XenApp 6.5 or XenDesktop 7.0 or above. The interface is the same as the Windows 7 location API but it works with the remote mobile device to determine location. Here is a video of how to use the API: http://www.citrix.com/tv/#videos/5377
Based on your configuration, you will most likely have desktop computers. If this is true, you might need to investigate other solutions. The most obvious path is to use the client IP address. If each store has different client IP address ranges, it would be fairly easy map between the IP address and the store. It is possible to get the client IP address: http://blogs.citrix.com/2008/03/07/how-to-get-the-client-ip-address-or-hostname-of-a-citrix-session-or-terminal-services-session/
Upvotes: 2