Problem with FTP on Android

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Marco_X
Posts: 2
Joined: Tue Mar 09, 2021 7:45 am

Problem with FTP on Android

Post by Marco_X » Tue Mar 09, 2021 11:26 am

hi, I have an APP that needs to download a file locally from an ftp server. Currently the app works correctly on IOS and I have no problems with ftp. I brought the app to android, but connecting to the same ftp server with the same commands (libURLDownloadToFile) I get the error: "java . io . IOexception: Unable to connect to server: Unable to configure data port". I tried to change ftp server but the error is still the same. The livecode version I am currently using is 9 . 6 .1 . Thank you very much for helping

simon.schvartzman
Posts: 638
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Re: Problem with FTP on Android

Post by simon.schvartzman » Tue Mar 09, 2021 1:25 pm

Hi @Marco_X, I do use FTP on both iPhone and Android but instead of libURLDownloadToFile I use tsNetUploadSync (I actually never did downloads but I'd bet it will work fine). Maybe you could try it as an alternative unless there is some specific reason why you want to use libURLDownloadToFile,

Good luck
Simon
________________________________________
To ";" or not to ";" that is the question

Marco_X
Posts: 2
Joined: Tue Mar 09, 2021 7:45 am

Re: Problem with FTP on Android

Post by Marco_X » Tue Mar 09, 2021 4:45 pm

Thanks Simon, I'll try your method. Thanks again.

Post Reply

Return to “Android Deployment”