Results 1 to 3 of 3

Thread: Intet Control - Unable to connect to remote host

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    1
    I am running into a problem with the Inet control. When I use the OpenURL everything works great, but now I am trying to ftp a file to a server using the Execute command. Everytime I try this I get error #35754, "Unable to connect to remote host." I get this no matter what site I'm trying to log onto.

    Here is my snippet of code, copied from the VBSquare's demo at http://www.vbsquare.com/demos/inet3-demo.

    With Inet1
    .Cancel
    .Protocol = icFTP
    .URL = txt(0).Text 'a valid url
    .UserName = txt(1).Text 'anonymous
    .Password = txt(2).Text '[email protected]
    End With

    Inet1.Execute , "DIR"

    My gut feel is that this is such a simple control that the problem lies somehow with our proxy server.

    Any ideas will be greatly appreciated!

    Thanks,
    Scott

  2. #2
    New Member
    Join Date
    May 2000
    Posts
    1
    I'm certainly no expert, but have you tried setting the .remoteport property to 21? I'm not sure if
    the protocol setting will affect this property or
    not.


  3. #3
    New Member
    Join Date
    Jul 2000
    Location
    Uk
    Posts
    3

    error


    I had a similar problem and got this bit of code from this forum, thanks to whoever posted it, what might be happening is that password logon etc is slow and your code has gone on ahead without waiting and created the error, give it a try, worked for me.

    cheers,
    n


    Inet1.Execute , whatever you want to do
    Do While Inet1.StillExecuting
    DoEvents
    On Error GoTo errortrap 'if you want to trap errors
    Loop

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width