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

FTP

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?

Thanks!  
0
lgropper
Asked:
lgropper
  • 3
1 Solution
 
sk33v3Commented:
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
0
 
lgropperAuthor Commented:
How do I ping the server in VB?
0
 
sk33v3Commented:
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
Summary:
Pings the specified server.

Parameters:
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.
0
 
sk33v3Commented:
here is a link to a related question. However his question was about a SQL Server connection the answer would apply to you too.
0
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