From owner-freebsd-hackers Wed Aug 27 19:23:02 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA01081 for hackers-outgoing; Wed, 27 Aug 1997 19:23:02 -0700 (PDT) Received: from whizzo.TransSys.COM (whizzo.TransSys.COM [144.202.42.10]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA01076 for ; Wed, 27 Aug 1997 19:22:59 -0700 (PDT) Received: from localhost.transsys.com (localhost.transsys.com [127.0.0.1]) by whizzo.TransSys.COM (8.8.7/8.7.3) with SMTP id WAA07055; Wed, 27 Aug 1997 22:22:49 -0400 (EDT) Message-Id: <199708280222.WAA07055@whizzo.TransSys.COM> X-Mailer: exmh version 2.0zeta 7/24/97 To: Nate Williams cc: hackers@FreeBSD.ORG From: "Louis A. Mamakos" Subject: Re: FTP protocol questions (non-passive mode) References: <199708272234.QAA02520@rocky.mt.sri.com> In-reply-to: Your message of "Wed, 27 Aug 1997 16:34:07 MDT." <199708272234.QAA02520@rocky.mt.sri.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 27 Aug 1997 22:22:49 -0400 Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Ok, so the client opens a TCP connection to an FTP server: (Client-IP, Client-Port) <-> (Server-IP, 21) in the absense of any other information, the data connection is made (per transfer) as: (Client-IP, Client-Port) <-> (Server-IP, 20) that is, the client reuses the same local port number, but uses the FTP data port on the server. BSD ftp clients use the PORT command to override this default port number selection. This allows successive data transfers to proceed more rapidly since you don't have to wait for the previous connection state to time out (it might be in TIMEWAIT state) before you can re-bind the same port number. louie