Is my understanding of the protocol correct? I managed to code an itsy
bitsy teeny weeny FTP client which works, but only if the server
supports passive mode. For active, I *think* this is what happens:

1) A client listens on port 20 for data connections started by the
server.

2) That makes is impossible at first to have two client processes on the
same machine doing a down(or up)load, but then there's the PORT command.

3) If an FTP client finds out it can't listen on 20, it grabs a random
free port and listens on it. It then issues a PORT command on the
control connection to inform the server of the new entrance.

4) Everything else proceeds as usual.

Did I get it right? And by the way, is there a reason so few FTP servers
deployed out there support passive mode? Is there a security reason or
something? Or is it just people don't bother upgrading?

Cheers all,
begin:vcard 
n:Castro;Juan
tel;work:540-9100 Ramal 46
x-mozilla-html:FALSE
url:http://www.appi.com.br/jcastro
org:APPI Inform�tica;Desenvolvimento
adr:;;Av. Ataulfo de Paiva, 135/1410 - Leblon;Rio de Janeiro;RJ;22499-900;Brasil
version:2.1
email;internet:[EMAIL PROTECTED]
title:Consultor
note;quoted-printable:One man alone cannot fight the future. USE LINUX!=0D=0A=0D=0A        -- The X Racer=0D=0A=0D=0APGP Key ID 0xAAE4050C=0D=0A
fn:Juan Carlos Castro y Castro
end:vcard

Reply via email to