On Wed, Aug 15, 2012 at 5:42 PM, Rankin, James R <[email protected]> wrote: > I've got someone using a program and they want to alter its behaviour based > on whether the user > is connected to the corporate network or not - specifically, whether the apps > they will be using are > XenApp offline streamed apps or delivered via the online plugin. Basically, > is there any way to > programatically tell whether the user is linked to the corporate network or > not (besides simply > checking the IP address, which could be fallible dependent on the IP range of > the network they > may be connected to)
Okay... now we're getting somewhere. As others have said, checking networks isn't really what you want to do. Too many ways that could go wrong. You're trying to determine how an application is running. (I presume you have some good reason for wanting *that*.) I presume you want to make this determination on the client itself? (I.e., you're not trying to gather this info remotely, from some other computer.) I'd start by seeing if there's a utility from the XenApp world that can tell you how an app is running, or the status of a server connection, or something along those lines. That would be the "best" solution, since it will tell the truth even if you're connected to the network but some other thing is wrong. E.g., XenApp service down. If something like that's not available... can you ping the XenApp server, maybe? -- Ben ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected] with the body: unsubscribe ntsysadmin
