Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-151

[PATCH] Allow user to force passive connections to use connected host in FTPClient

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 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.

      Attachments

        1. FTPClientOverrideHost.patch.txt
          2 kB
          Neil Aggarwal
        2. FTPClient.patch.txt
          3 kB
          Neil Aggarwal

        Activity

          People

            Unassigned Unassigned
            neilagg Neil Aggarwal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: