FTP connection from VBA is not working

salvazo

Member
May 2, 2011
20
1
53
Hi, I'm trying to connect to an FTP from a VBA program with this code:

hConnect = InternetConnect(hInternet, _
sFtp, _
INTERNET_DEFAULT_FTP_PORT, _
sFtpUserName, _
sFtpPassword, _
INTERNET_SERVICE_FTP, _
INTERNET_FLAG_EXISTING_CONNECT Or _
INTERNET_FLAG_PASSIVE, _
&H0)

The thing is that was working fine in a previous version from cPanel, but now it's not working.

I tried ProFTPD and Pure-FTPD servers selection with no success. Right now I have enabled Pure-FTPD with "Broken Clients Compatibility" set as "Yes", but it can't connect.

Anybody knows something about this?!

Many thanks