Detecting VPN and Accessing Network file errors.
Posted on 2005-04-23
Is there a way to detect programatically if a user is in-house (logged into domain) or out-house (logged in via VPN). What I want to accomplish: If a user is at home and opens the application, I want to be able to detect if they are logged into the VPN, if not I want to prompt the user to log into the VPN.
Additionally, when users are connected via the VPN, they are not allowed to access any files on the network. I can ping any server in the network, I can access the files by typing in the \\IP Address\Folder\File in IE or I can access the file by going to run and typing in \\IP Address\Folder\File. However, when trying to open the file or directory from within the application, I get file cannot be found.
Now, the setup (fyi - I did not set up the VPN, so the VPN is setup through a PIX firewall) users do not enter their NT username and password, but a generic username and password that simply allows them in. Then everytime they access a file they must type in their NT username and password, which gets old fast.
I have to resolve all of this by next week so urgent is an understatement. Thanks in advance!