BTW, how could i know whether ftp has been connected or not? I use the following code. Please confirm whether it is correct or not.
B4X:
If ftp1.PassiveMode=False Then
'lv.AddSingleLine(ftp1.List("\home"))
ftp1.List("/")
ToastMessageShow("Connceted.",True)
Else
ToastMessageShow("Could not conncet to the server.",True)
End If
You should test it with a real device. The connection is established automatically when needed. You should check the Success parameter in the relevant event.
I have the same 500 error from the FTP. The error is the same even if I test it with a real device.
But I have tried to connect to the FTP from the computer, proving that all the FTP connection and address is fine is correct..