What is the difference between PASV & PORT mode ?
An FTP Server uses 2 ports : – main port (usually 21) for command (USER, PASS, CWD …) – data port (main port – 1) for data transfert (directory listing, upload & download) The difference between Passive mode (PASV) and normal mode (PORT) is the connection : – when using PASV, client asks server where it (the client) will have to connect to to establish data transfer link. Client > PASV Server > 227 Entering Passive Mode (209,15,39,184,249,155) Ftp client must connect to 209.15.39.184 on port 249*256 + 155 = 63899 – when using PORT, client specifies what ip and port the FTP server must connect to to establish data transfer link : Client > PORT 192,168,0,10,5,114 Server > 200 PORT command successful.