EmbLogic's Blog

ftp server

what is the difference between active and passive mode

One Response to ftp server

  1. sujeet mahlan says:

    Environment. it has two modes -
    1)Active mode FTP :=Client connect from a random unprivileged port (n > 1023) to the server command port (21) and sends port command to tell server to connect to n+1 port. The server connects from it’s data port (20) to the client data port (n+1) .

    2)Passive mode FTP := Client opens two random unprivileged ports ( n > 1023 and n+1; ex 1026 and 1027) and connects the first port (n) to server command port 21 and issues a pasv command ; client connects to servers specified data port, server completes connection.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>