It all depends on how CF implements ftp.  If it uses the PORT command then you need to 
have the specified port open.  However, the
kicker is that it is dynamic (note - the ftp protocol conversation is on port 21 but 
data transfer is not).   Here's what I mean:

client (in this case, CF) connects to ftp server
client sends PORT command to specify a *client side* port for data  transfer.
data transfer is now accomplished by the ftp server connecting to the specified port 
on the client for data transfer.

If the client does not specify a port then port 20 is used on the client side by 
default.

If the client uses new ftp protocol features then the server supplies the data port 
(PASV command)

Here is an example PORT command:

PORT 25,50,75,1,12,55

The first four numbers refer to the IP address of the client.  The last two are the 
port (in the above example the port is
12*256+55=3127)

So, bottom line is that if CF uses the old style PORT interface then you need to have 
all your incoming ports available for ftp data
transfer.

Please let me know if you need more information...

HTH,

Howie Hamlin - inFusion Project Manager
On-Line Data Solutions, Inc.
www.CoolFusion.com
631-737-4668 x101
inFusion Mail Server (iMS) - The Intelligent Mail Server
Join the DevCon community at www.coolfusion.com/devcon


----- Original Message -----
From: "Robert Everland" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, August 23, 2001 6:09 PM
Subject: Port for CFFTP


> I have limited ports open on my cf machine and am having problems getting
> ftp data, what ports need to be open to get ftp data. I opened 21, but it
> keeps saying bad port, though I was able to use ftp.exe and connect to where
> I wanted to go.
>
> Robert Everland III
> Dixon Ticonderoga
> Web Developer Extraordinaire
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to