Here's what MSFT uses to determine if the user is connected to the
corporate network.

Have an external host (web site, ftp site, whatever site, as long as
it has a name) that can't be pinged from the inside. Also have an
internal host  that can't be pinged from the outside. Run a client on
the user's host that attempts to ping both, and changes the state of
something that can be queried, also on the user's host, that can be
polled by whatever program you're using. It could be a batch file that
runs @logon, or @startup, or every 10 minutes, and writes a text file
somewhere.

MSFT does something like this with Direct Access. It's more
complicated than that for DA, because they have to set up NRPT with
the exceptions for the above hosts, and other folderol, because
they're trying to set up IPv6 tunnels and such, but that's the basic
idea.

Kurt

On Wed, Aug 15, 2012 at 2: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)
>
> ------Original Message------
> From: Ben Scott
> To: NT System Admin Issues
> ReplyTo: NT System Admin Issues
> Subject: Re: Offline/online detection
> Sent: 15 Aug 2012 22:29
>
> On Wed, Aug 15, 2012 at 2:25 PM, Rankin, James R <[email protected]> 
> wrote:
>> What's the best way to detect whether a user is offline or online (I.e. 
>> Connected to the corporate network)?
>
>   I suspect we need more context.
>
>   What are you trying to accomplish?  What's the end goal?  What
> problem are you trying to solve?
>
>   :-)
>
> -- 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
>
> ---Blackberried
> ~ 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

~ 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

Reply via email to