Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ucbvax!TERMINUS.UMD.EDU!dzoey From: dzoey@TERMINUS.UMD.EDU.UUCP Newsgroups: mod.protocols.tcp-ip Subject: Re: FTP client program Message-ID: <8704121733.AA10973@terminus.UMD.EDU> Date: Sun, 12-Apr-87 12:33:42 EST Article-I.D.: terminus.8704121733.AA10973 Posted: Sun Apr 12 12:33:42 1987 Date-Received: Sun, 12-Apr-87 23:36:03 EST References: <8704121737.AA26605@trantor.UMD.EDU> Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet Lines: 22 Approved: tcp-ip@sri-nic.arpa No doubt you will get many replies, but here's the info on how to listen for a data connection. The well know data port for FTP is port 20. You can change this by issuing the PORT command to the host before you issue a STOR or RETR. I forget the exact syntax for the PORT command, but it's in the RFC. example user wants to stor data: client: PORT x server: {200,250} PORT command okay client: listen on x client: STOR foo server: {150,125} Establishing connection {opens a tcp connection to port x} If you want more info, I'll be glad to help. Joe Herman dzoey@umd5.umd.edu