Identify: VPN or Network - What API Function do I use?

  • Thread starter Thread starter Yo
  • Start date Start date
Y

Yo

How do you identify if a user is Local or VPN?
It will either be a VPN from a remote location or a Network Login from
inside the office.
Thanks in advance,
Yo.
 
Yo said:
How do you identify if a user is Local or VPN?
It will either be a VPN from a remote location or a Network Login from
inside the office.

I don't know that you can. The very nature of a VPN is to make it so that the remote user is effectively inside the
network - they are assigned a local IP.

What does it matter to your VB app?

-Pete
 
Hi Yo,

The only way I can think of to do something like this is look at the user's
IP address. If your Active Directory setup assigns designated IP addresses
to VPN users, then you can test to see if the IP is in that range.

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]
 
Yo,

A lot of implementations use a set range of IP Addresses for VPN usage. You
could check for that.

Otherwise, a crude hack might be to measure ping times against a local
server.

Rob
 
My company has 2 offices which are a block appart. The main office needs to
know who in the secondary office is in (Local) or logged from home (VPN).
The secondary office is on a point to point T1 so it has the same internal
IP, and the VPN I am going to assume is different. Thanks for the
suggestions, Pete, Jake & Rob.

I am going to need to ID the machines IP address. Thanks
Yo.


Peter Young said:
I don't know that you can. The very nature of a VPN is to make it so that
the remote user is effectively inside the
 
Back
Top