• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 244
  • Last Modified:


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?

  • 3
1 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 http://safari.oreilly.com/0735615799/IDACFDV
lgropperAuthor Commented:
How do I ping the server in VB?
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.
here is a link to a related question. However his question was about a SQL Server connection the answer would apply to you too.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now