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
Hi,
I am using FTPClient to put file in remote servers. The code works fine in
the local server(inside of my company), but always got time out problem in the
outside server(client's FTP server). I manually used command line ftp to the
outside server without any problem. I searched on t