Re: Time out when using FTPClient.storeFile

2008-02-26 Thread shaw shaw
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

Re: Time out when using FTPClient.storeFile

2008-02-25 Thread shaw shaw
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

Re: Time out when using FTPClient.storeFile

2008-02-22 Thread shaw shaw
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

Time out when using FTPClient.storeFile

2008-02-21 Thread shaw shaw
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