Cleverly change the transfer mode to solve the FTP connection problem

  
If you ask someone "why can't connect to an FTP"? He may let you change the FTP transfer mode. What is the FTP transfer mode? Can changing the FTP transfer mode solve the problem? Let me and everyone talk about "two modes."
1. Two modes of FTP
The two modes of FTP are divided into active mode (PORT) and passive mode (PASV). If the active mode is adopted, the FTP software requests the server to connect to it; if the passive mode is used, the server tells the FTP software "you come to connect me".

Tip: Firewall users cannot use active mode because the firewall does not allow active connections from outside the network, so users must use passive mode.
2, to determine whether the problem is in the transmission mode
When logging in to FTP, a variety of errors often occur, then what is because the transmission mode is set incorrectly What caused it? The following examples that cannot be connected may be caused by incorrect transfer mode settings.
1. When the "426 data connection closed, transfer aborted" prompt appears, it means that you have adopted the active mode, and the firewall prohibits the active connection from the FTP server.
2. If the message location of "550 Passive mode not allowed on this server" appears, it indicates that the FTP server is set to a connection that does not support passive mode.
3. In addition, the "data Socket error, the connection has timed out" error is also very common, which is also caused by incorrect transmission mode settings.
3, FTP transfer mode switching
Since the improper setting of the transmission mode can cause a variety of FTP login failures, then how to change the transmission in the actual application process What about the model? Below we will pass the FTP transfer mode switching method of common tools to everyone. 1.IE
IE browser is one of the simplest and direct tools for us to log in to the FTP server. The default mode is active mode, and the switching method is relatively simple. After launching IE, open "Internet Options" in the "Tools" menu, switch the open window to the "Advanced" tab, select the "Use passive FTP" option and save the settings (Figure 1).

Copyright © Windows knowledge All Rights Reserved