I'm trying to get my app to send files to my ftp server, it connects and throws a "425 can't build data connection" error. I found references to this error in the forum here, but no solution. Has anyone figured this one out?
I have double-checked my syntax, and simplified my code just initialize, and ftpupload, but still same error on my server window, then it hangs and will not execute the next command (ftp.close).
I am able to login and use this server from an ftp client just fine.
B4X:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("main")
FTP.Initialize("FTP", "myftpserver.com", 21, "user", "pass")
Sub btnPlate_Click
FTP.UploadFile(File.DirRootExternal, "1A5AD431.ret", True, "/MCN_SEND/1A5AD431.RET")
FTP.Close
end sub
Real device, Droid X2. I am able to ftp using a client app, I just can't get my b4a app to work, log shows it logs in and accepts password, then starts upload but no progress after that and it just hangs with that error. Zero bytes tranferred.