Results 1 to 3 of 3

Thread: ftp connection

  1. #1

    Thread Starter
    Member Red Thread's Avatar
    Join Date
    Aug 2000
    Location
    Europe-Belgium
    Posts
    44

    Question

    Hello,

    I have the following question ; I use API ‘wininet.dll’ to set up an ftp connection. I need to connect to various ftp servers in various countries. (like spain,england, turkey) With most countries, I can get an connection and transfer files, etc. Except for Turkey. They have a poor connection, and I don’t get a connection with my vb program. The strange thing is, when I use the program ‘windows commander v4.6’, I can get the connection… what am I doing wrong ? I already changed these settings
    Public Const INTERNET_OPTION_CONNECT_RETRIES = 1
    Public Const INTERNET_OPTION_CONNECT_TIMEOUT = 3
    Public Const INTERNET_OPTION_RECIEVE_TIMEOUT = 7
    But with bo result however…

    The code I use to connect to the ftp server is
    hConnection = InternetConnect(hOpen, "ftp-server", INTERNET_INVALID_PORT_NUMBER, "user", "password", INTERNET_SERVICE_FTP, dwSeman, 0)

    Can someone give me some advice ?

    thx

  2. #2
    New Member
    Join Date
    Apr 2001
    Posts
    14
    Well, you're probably not going to like my answer, but I always use Winsock API because it gives greater control over the connection interchanges.

    My stab in the dark is that maybe those other two servers don't require passive transfers, and the turkey server does. *shrug* I don't know.

  3. #3

    Thread Starter
    Member Red Thread's Avatar
    Join Date
    Aug 2000
    Location
    Europe-Belgium
    Posts
    44

    Talking indeed

    indeed, this not the answer i'm looking for
    I have already much coded, so switching is not an option for me...
    But anyway, thx for the tip


    Greetings Red

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