Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 13838 invoked from network); 4 Nov 2005 04:30:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Nov 2005 04:30:12 -0000 Received: (qmail 35072 invoked by uid 500); 4 Nov 2005 04:29:06 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 34551 invoked by uid 500); 4 Nov 2005 04:29:02 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 31094 invoked by uid 99); 4 Nov 2005 04:28:37 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2005 20:28:37 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of dfs@savarese.org designates 204.91.10.133 as permitted sender) Received: from [204.91.10.133] (HELO savarese.org) (204.91.10.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2005 20:28:32 -0800 Received: from mail.savarese.org (mail2.savarese.org [192.168.2.5]) by savarese.org (8.13.4/8.13.4) with ESMTP id jA44S5p8006707 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Thu, 3 Nov 2005 23:28:06 -0500 Received: from gandalf.savarese.org (gandalf.savarese.org [192.168.1.16]) by mail.savarese.org (8.13.4/8.13.4) with ESMTP id jA44SEB5005906 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 3 Nov 2005 23:28:14 -0500 Received: from savarese.org by gandalf.savarese.org (8.13.4/8.13.4/Submit) with ESMTP id jA44SDGr010568; Thu, 3 Nov 2005 23:28:13 -0500 Message-Id: <200511040428.jA44SDGr010568@gandalf.savarese.org> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.1 To: "Commons User" cc: "Barrie Selack" X-Archive: no Subject: Re: FTPClient occasionally opens port to self instead of server In-reply-to: Your message of "Thu, 03 Nov 2005 09:13:27 EST." <20051103141327.16298@mail.digipixart.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 03 Nov 2005 23:28:13 -0500 From: "Daniel F. Savarese" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N In message <20051103141327.16298@mail.digipixart.com>, "Barrie Selack" writes: >PASV >227 Entering Passive Mode (24.www.xxx.yy,253,112) Okay, so that would mean it's not a bug in FTPClient. The FTP server is sending back 24.www.xxx.yy as the IP address for the data connection instead of the 207.www.xx.yy it should be sending. I couldn't see any way in the code for FTPClient to cause a local IP to be used, so that's consistent. Unfortunately, it means your FTP server is at fault (or some library it depends on, maybe getsockname is buggy). >happens much more. Just FYI, I switched the code to use edtFTPj and >tested several times with no problems. If edtFTPj is working, then it won't work with FTP servers that have have multiple interfaces/IP addresses because it must not be parsing the PASV reply. I'm not sure how to proceed. I'm hesitant to special-case a workaround for a buggy FTP server. Any suggestions? daniel -#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#- s a v a r e s e # In distant lands, I hear the call of my home. software research # Yet my work is not done. My journey's just begun. http://www.savarese.com/ # -- http://www.sleepandthetraveller.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org