Passive FTP
To avoid the potential firewall issues experienced, we can use passive FTP. In passive FTP, the client opens a random port, and the port immediately after it. For this example, let's use 2031 and 2032 again. The client connects to the FTP server on port 21 from port 2031. This connection is used for command traffic, and one of the first things the client sends is a message telling the server that it is running in passive mode. The server responds back to port 2031 on the client and provides the number of a port that the server has made available to the client. For this example, the server has stipulated port 2879. Continuing our example, on receipt of this port number, the client connects from port 2032 to port 2879 on the server. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access