peacemaker Expert Licensed User Longtime User Mar 23, 2018 #1 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: Code: ListingSuccess=true java.lang.RuntimeException: Error uploading file. 500 Illegal PORT command. 2) If PassiveMode = true: Code: 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 ?
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: Code: ListingSuccess=true java.lang.RuntimeException: Error uploading file. 500 Illegal PORT command. 2) If PassiveMode = true: Code: 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 ?
Erel B4X founder Staff member Licensed User Longtime User Mar 25, 2018 #2 Set PassiveMode to true. Are you testing it on a real device? Where is the FTP server hosted? Upvote 0