Set the current data connection mode to
ACTIVE_REMOTE_DATA_CONNECTION
. Use this method only for server to server data transfers. This method issues a PORT command to the server, indicating the other server and port to which it should connect for data transfers. You must call this method before EVERY server to server transfer attempt. The FTPClient will NOT automatically continue to issue PORT commands. You also must remember to call
enterLocalActiveMode() if you wish to return to the normal data connection mode.
@param host The passive mode server accepting connections for datatransfers.
@param port The passive mode server's data port.
@return True if successfully completed, false if not.
@exception FTPConnectionClosedException If the FTP server prematurely closes the connection as a result of the client being idle or some other reason causing the server to send FTP reply code 421. This exception may be caught either as an IOException or independently as itself.
@exception IOException If an I/O error occurs while either sending acommand to the server or receiving a reply from the server.