In passive mode, both the command and data channels are established by the client. , in active mode, the client launches the command channel, and the server establishes the data channel. The command channel is for sending the commands and responses, and the data channel is for sending the actual data. And, it uses two channels between the client and server: the command channel and the data channel.
FTP uses two ports, one for connection and one for sending data.įTP can run in two modes: active and passive. The computers transferring the files can be within the same network where the FTP server is configured, as well as outside the network (over the internet). The server hosts the files to be shared and the client provides the interface to access, download, or upload files to the file server.