Posted on 2006-05-09
Last Modified: 2010-04-23
I am trying to set up a function to upload a file via ftp.  I do not want to use the windows dialer (or at the very least, I do not want it to be visable)  for locations that are not already on a VPN... I would really prefer to use RASDial to connect directly to our servers.

Also, is there a relaible way to detect whether there is a direct connection to our main servers, so I can write the application to auto-detect the necessity of using RASDial?

Question by:lgropper
    LVL 9

    Accepted Solution

    Hmm, on the auto detect I would probably suggest using a ping command. Pinging the server(or some device on the same network) would ensure that you can reach the remote server. As far as making the connection I believe you would benefit from reading this chapter

    Author Comment

    How do I ping the server in VB?
    LVL 9

    Expert Comment

    This is directly from the object Browser in Visual Studio

    Microsoft.VisualBasic.Devices.Network.Ping(String) As Boolean

    Public Function Ping(ByVal hostNameOrAddress As String) As Boolean
         Member of: Microsoft.VisualBasic.Devices.Network
    Pings the specified server.

    hostNameOrAddress: String. The URL, computer name, or IP number of the server to ping. Required.

    Return Values:
    Boolean indicating whether or not the operation was successful.
    LVL 9

    Expert Comment

    here is a link to a related question. However his question was about a SQL Server connection the answer would apply to you too.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    Introduction When many people think of the WebBrowser ( control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    733 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

    20 Experts available now in Live!

    Get 1:1 Help Now