Fixed and sent to your private email. Your ftp server doesn't allow active ftp mode. The sample now uses passive ftp mode: #define INTERNET_FLAG_PASSIVE 134217728hConnect = INTERNETCONNECT( hInternet, "ftp.fenatac.log.br", INTERNET_INVALID_PORT_NUMBER, "fenatac@fenatac.log.br", ...