[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Detecting VPN and Accessing Network file errors.

Posted on 2005-04-23
Medium Priority
Last Modified: 2010-08-05
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.

Any suggestions?

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!
Question by:jamieschaller
1 Comment

Accepted Solution

_lv_ earned 1500 total points
ID: 13853064
Consider changing your network/security configuration in such a way, that users could't access your network (and application, naturally) in any other way, than via VPN or locally. That's it - users logs into domain (it means, that user's local acount must be a valid domain acount) via VPN and get access to your application and other files, AND you don't have to worry if they are connected via VPN or locally.

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question