Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0
-
None
-
None
-
Windows XP, Java 1.5.0, Intel processor
Description
Currently, FTPClient always uses the host and port returned to it from the reply to a passive connection request.
Some FTP hosts are set incorrectly or are set behind a NAT so they report the incorrect IP address to use for the connection and the transfer will fail to connect.
This patch allows the user to tell FTPClient to use the connected host instead of the host given from the passive reply.
Doing so will allow successful transfers even when the report FTP server returns an incorrect IP address.