I've written a method to test if a file is a directory and recursively get the contents of that directory.Half way through the get it fails throwing the following exceptions :Can't open passive connection /Cannot assign requested address
Below is part of the debug output...
DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 30 Sep 2005 13:40:46.126 : ---> PASV
DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 30 Sep 2005 13:40:46.206 : 227 Entering Passive Mode (30,0,2,214,7,70)
DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 30 Sep 2005 13:40:46.286 : ---> RETR //config/NetCache.cfg_24_08_14_43
DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 30 Sep 2005 13:40:46.376 : 150 Opening BINARY mode data connection for '//config/NetCache.cfg_24_08_
14_43' (28606 bytes).
DEBUG [com.enterprisedt.net.ftp.FTPClient] 30 Sep 2005 13:40:46.827 : Transferred 28606 bytes from remote host
DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 30 Sep 2005 13:40:46.827 : 226 Transfer complete.
DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 30 Sep 2005 13:40:46.827 : ---> PASV
DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 30 Sep 2005 13:40:46.917 : 425 Can't open passive connection: Cannot assign requested address.
Exception Received during SFTP Comms: Can't open passive connection: Cannot assign requested address.
any ideas please?