Login  
Search All Forums
Dart Home | PowerTCP FTP for ActiveX | Custom Development Reply | PowerTCP FTP for ActiveX Topics | Forums   
AuthorForum: PowerTCP FTP for ActiveX
Topic: Using IP addresses
User26

Posts: 1
Member Since: 05/17/02
posted May 17, 2002 1:12 AM

Is it possible to use IP addresses instead of URLs, such as .GET user:pw@123.123.123.123 etc
instead of of .GET user:pw@ftp.xyz.com

The FTP control returns an "unkown host" error, even though I can FTP to the same IP address using IE5
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted May 17, 2002 9:01 AM


Yes, it is possible. The following code works fine for me:

Private Sub Command1_Click()
  On Error GoTo OnError
  Command1.Enabled = False
  Ftp1.Trace "Trace.log", True, True, vbCrLf + "---> ", vbCrLf + "<--- "
  Ftp1.TimeOut = 5000
  Ftp1.Get "ftp://anonymous:test@ftp.microsoft.com/bussys/readme.txt", "readme1.txt"
  Ftp1.Get "ftp://anonymous:test@207.46.133.140/bussys/readme.txt", "readme2.txt"
  GoTo Done
OnError:
  Debug.Print "ERROR #" + CStr(Err.Number) + ": " + Err.Description
Done:
  Command1.Enabled = True
End Sub
N/A posted May 17, 2002 7:02 PM

Thanks! Turns out my problem was elsewhere!
Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX