Daniel,
I finallay found the solution. I just removed the enterLocalPassiveMode(),
then it works. I think the FTP Server supports the passive mode because I
manaully FTP by using passive mode without any problem. Not sure why it does
not like the local passive mode in the code.
Tha
Daniel,
The server supports passive mode because I manually ftp and changed to
passive mode without any problem. I put the setDataTimeout in MySocketFactory
and still got timeout. I printed the host and port value and found they are
correct. Here is MySocketFactory class, please let me
Daniel,
Thank you for your help. I tried to use setDataTimeout and still got time
out. I changed the timeout value for both FTPClient.setDataTimeout(timeout)
and
MySocketFactory.setConnectTimeout(timeout ). But the actual time out is
always same and is not affected by the value I set