Conclusion About FTP -
FTP uses one connection for commands and the other for sending and receiving
data. FTP has a standard port number on which the FTP server
"listens" for connections. A port is a "logical connection
point" for communicating using the Internet Protocol (IP). The
standard port number used by FTP servers is 21 and is used only for sending
commands. Since port 21 is used exclusively for sending commands, this
port is referred to as a
command port. For example, to get a list of
folders and files present on the FTP server, the FTP Client issues a
"LIST" command. The FTP server then sends a list of all folders
and files back to the FTP Client. So what about the internet connection
used to send and receive data? The port that is used for transferring
data is referred to as a
data port. The number of the data port will
vary depending on the "mode" of the connection. (See below for
Active and Passive modes.)
Difference between Active and Passive Connection Mode
The FTP server may support
Active or
Passive connections, or
both. In an Active FTP connection, the client opens a port and listens
and the server actively connects to it. In a Passive FTP connection, the
server opens a port and listens (passively) and the client connects to
it. You must grant Auto FTP Manager access to the Internet and to choose
the right type of FTP Connection Mode.
Most FTP client programs select passive connection mode by default because
server administrators prefer it as a safety measure. Firewalls generally
block connections that are "initiated" from the outside. Using
passive mode, the FTP client (like Auto FTP Manager) is "reaching
out" to the server to make the connection. The firewall will allow
these outgoing connections, meaning that no special adjustments to firewall settings
are required.
If you are connecting to the FTP server using
Active mode of connection
you must set your firewall to accept connections to the port that your FTP
client will open. However, many Internet service providers block incoming
connections to all ports above 1024. Active FTP servers generally use
port 20 as their data port.
It's a good idea to use
Passive mode to connect to an FTP
server. Most FTP servers support the Passive mode. For Passive FTP
connection to succeed, the FTP server administrator must set his / her firewall
to accept all connections to any ports that the FTP server may open.
However, this is the server administrator's problem (and standard practice for
servers). You can go ahead, make and use FTP connections.
Once the FTP Client manages to open the internet connections, one for command
and one for data, it starts communicating with the FTP server. You are
now ready to transfer your files and folders between the two connected
computers with Auto FTP Manager.
Below image is Example of both Active and passive connection mode how it is works.
Thanks
R.karthikeyan