Android Question FTP.List error "connection refused"

peacemaker

Expert
Licensed User
Longtime User
HI, All

Before i used FTP object without problems.
Now found that connecting to a FTP-server gets errors.

1) If PassiveMode = false - connection is OK, but:
B4X:
ListingSuccess=true

java.lang.RuntimeException: Error uploading file.
500 Illegal PORT command.

2) If PassiveMode = true:
B4X:
ListingSuccess=false
(ConnectException) java.net.ConnectException: Connection refused

If to try by TOtalCommander's FTP-client - it's OK opened, dir listing is OK and all other is OK.
What's wrong in the app ?
 
Top