
Originally Posted by
westconn1
we would have to assume that there is something wrong with your connection
ip address, user or password
Yes. I thinks so
Because when i am using INET control with the following code
Code:
Inet1.URL = "ftp://ftp.192.168.3.43"
Inet1.Username = "root"
Inet1.Password = "P@ssw0rd"
Inet1.Execute , "DIR"
Code:
Private Sub Inet1_StateChanged(ByVal State As Integer)
Dim data As String
Dim data1 As String
Select Case State
Case icError
MsgBox Inet1.ResponseInfo, , "File failed to transfer"
Case icResolvingHost
Label6.Caption = "Resolving Host"
Case icHostResolved
Label6.Caption = "Host Resolved"
Case icConnecting
Label6.Caption = "Connecting Host"
Case icConnected
Label6.Caption = "Host connected"
Case icReceivingResponse
Label6.Caption = "Receiving Response"
Case icResponseReceived
Label6.Caption = "Got Response"
Case icResponseCompleted
MsgBox "Transfer Completed"
Do
data1 = Inet1.GetChunk(1024, icString)
data = data & data1
Loop While Len(data1) <> 0
Text6.Text = data
End Select
End Sub
I am getting following error
Unable to connect to remote host