Detecting VPN and Accessing Network file errors.

Posted on 2005-04-23
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
    LVL 4

    Accepted Solution

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Suggested Solutions

    Title # Comments Views Activity
    MS Access "DoCmd.applyfilter" 16 69
    VBA Check for Character 9 62
    Determine Range to Select 5 26
    Adding to a VBA? 6 28
    Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
    Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now