FTP upload encounters a Socket cannot connect problem.
Published: 2004-03-03
Regarding the issue that FTP Socket cannot connect:
The main difference between FTP's PORT and PASV modes is that the data port connection methods are different: FTP PORT mode only requires opening ports 21 and 20 on the server, while FTP PASV requires opening port 21 and all TCP ports greater than 1024 on the server.
When users cannot list while uploading files with FTP, it may be caused by choosing to upload in PASV mode. Therefore, please change the upload mode to PORT. For the same software, different versions have slightly different setup methods, so configure it according to the actual situation (if access still fails after disabling PASV, please try selecting “Use firewall access” before PASV and try again). As shown:
CuteFTP 5.0XP setup method:
1. Select Edit --> click Settings

2. Select Firewall --> click “PASV mode” to clear the check mark in the checkbox --> click OK

If "Data connection closed, transfer aborted " appears after connection, please select the Enable firewall access option
Setup methods for other FTP:
CuteFtpPro3.X setup method: Select Tools --> click Global Options --> select Connection --> select Data Connection Type as: PORT --> click OK
Cute FTP 3.5 English version: FTP—Settings—Options—Firewall, clear the check mark in the checkbox before “PASV mode”.
Cute FTP3.5 Chinese version: FTP—Settings—Options—Firewall, clear the check mark in the checkbox before “PASV mode (A)”.
Leap FTP2.7.2: Sites—Site Manager—Advanced, clear the check mark in the checkbox before “Use PASV mode”.
FileZilla FTP can enable the default passive mode PASV in the FTP transfer modes; check the option to allow fallback to other transfer modes after failure.

