Issue connecting to 3rd party FTP
I'm struggling to use WinSCP to connected to a 3rd party FTP. The server may be misconfigured and responds with its internal IP address but I have no control here. We used to use FileZilla to access it and could get around the issue by changing the FTP Passive mode setting to "Fall back to active mode" however we are no longer allowed to use FileZilla. I can successfully connect using WinSCP when I disable Passive Mode in settings but it eventually fails with the error:
Thanks in advance.
Does anyone know of a work around? See the log output below.Timeout detected. (data connection)
Could not retrieve directory listing
Error listing directory '/'.
2021-04-01 10:36:49.350 Session name: xxxxxxxxxxxx (Site) . 2021-04-01 10:36:49.350 Host name: xxxxxxxxxxxxx (Port: 21) . 2021-04-01 10:36:49.350 User name: xxxxxxxxxxxx (Password: No, Key file: No, Passphrase: No) . 2021-04-01 10:36:49.350 Transfer Protocol: FTP . 2021-04-01 10:36:49.350 Ping type: Dummy, Ping interval: 30 sec; Timeout: 15 sec . 2021-04-01 10:36:49.350 Disable Nagle: No . 2021-04-01 10:36:49.350 Proxy: None . 2021-04-01 10:36:49.350 Send buffer: 0 . 2021-04-01 10:36:49.350 UTF: Auto . 2021-04-01 10:36:49.350 FTPS: None [Client certificate: No] . 2021-04-01 10:36:49.350 FTP: Passive: No [Force IP: Auto]; MLSD: Auto [List all: Auto]; HOST: Auto . 2021-04-01 10:36:49.350 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes . 2021-04-01 10:36:49.350 Cache directory changes: Yes, Permanent: Yes . 2021-04-01 10:36:49.350 Recycle bin: Delete to: No, Overwritten to: No, Bin path: . 2021-04-01 10:36:49.350 Timezone offset: 0h 0m . 2021-04-01 10:36:49.350 -------------------------------------------------------------------------- . 2021-04-01 10:36:49.388 Connecting to xxxxxxxxxxxx ... . 2021-04-01 10:36:49.518 Connected with xxxxxxxxxxxxx. Waiting for welcome message... < 2021-04-01 10:36:50.338 220 (vsFTPd 2.2.2) > 2021-04-01 10:36:50.338 USER xxxxxxxxxxxx < 2021-04-01 10:36:50.556 331 Please specify the password. > 2021-04-01 10:36:51.416 PASS *************** < 2021-04-01 10:36:53.151 230 Login successful. > 2021-04-01 10:36:53.152 SYST < 2021-04-01 10:36:53.369 215 UNIX Type: L8 > 2021-04-01 10:36:53.370 FEAT < 2021-04-01 10:36:54.031 211-Features: < 2021-04-01 10:36:54.031 EPRT < 2021-04-01 10:36:54.031 EPSV < 2021-04-01 10:36:54.031 MDTM < 2021-04-01 10:36:54.031 PASV < 2021-04-01 10:36:54.031 REST STREAM < 2021-04-01 10:36:54.031 SIZE < 2021-04-01 10:36:54.031 TVFS < 2021-04-01 10:36:54.031 UTF8 < 2021-04-01 10:36:54.031 211 End > 2021-04-01 10:36:54.031 OPTS UTF8 ON < 2021-04-01 10:36:54.249 200 Always in UTF8 mode. . 2021-04-01 10:36:54.271 Connected . 2021-04-01 10:36:54.271 -------------------------------------------------------------------------- . 2021-04-01 10:36:54.271 Using FTP protocol. . 2021-04-01 10:36:54.271 Doing startup conversation with host. > 2021-04-01 10:36:54.283 PWD < 2021-04-01 10:36:54.503 257 "/" . 2021-04-01 10:36:54.503 Getting current directory name. . 2021-04-01 10:36:54.561 Retrieving directory listing... > 2021-04-01 10:36:54.561 TYPE A < 2021-04-01 10:36:55.080 200 Switching to ASCII mode. > 2021-04-01 10:36:55.081 PORT 10,11,100,50,26,236 < 2021-04-01 10:36:55.300 200 PORT command successful. Consider using PASV. > 2021-04-01 10:36:55.300 LIST -a . 2021-04-01 10:37:10.337 Timeout detected. (data connection) . 2021-04-01 10:37:10.337 Could not retrieve directory listing . 2021-04-01 10:37:10.338 LIST with -a failed, will try pure LIST . 2021-04-01 10:37:10.385 Connecting to xxxxxxxxxxxxxx ... . 2021-04-01 10:37:10.438 Connected with xxxxxxxxxxxxxxx. Waiting for welcome message... < 2021-04-01 10:37:10.810 220 (vsFTPd 2.2.2) > 2021-04-01 10:37:10.810 USER xxxxxxxxxxxxx < 2021-04-01 10:37:11.490 331 Please specify the password. . 2021-04-01 10:37:11.490 Using remembered password. > 2021-04-01 10:37:11.490 PASS *************** < 2021-04-01 10:37:11.716 230 Login successful. > 2021-04-01 10:37:11.716 SYST < 2021-04-01 10:37:11.934 215 UNIX Type: L8 > 2021-04-01 10:37:11.934 FEAT < 2021-04-01 10:37:12.301 211-Features: < 2021-04-01 10:37:12.301 EPRT < 2021-04-01 10:37:12.301 EPSV < 2021-04-01 10:37:12.301 MDTM < 2021-04-01 10:37:12.301 PASV < 2021-04-01 10:37:12.302 REST STREAM < 2021-04-01 10:37:12.302 SIZE < 2021-04-01 10:37:12.302 TVFS < 2021-04-01 10:37:12.302 UTF8 < 2021-04-01 10:37:12.302 211 End > 2021-04-01 10:37:12.302 OPTS UTF8 ON < 2021-04-01 10:37:12.520 200 Always in UTF8 mode. . 2021-04-01 10:37:12.573 Connected . 2021-04-01 10:37:12.574 Doing startup conversation with host. > 2021-04-01 10:37:12.590 PWD < 2021-04-01 10:37:12.807 257 "/" . 2021-04-01 10:37:12.807 Changing directory to "/". > 2021-04-01 10:37:12.807 CWD / < 2021-04-01 10:37:13.026 250 Directory successfully changed. . 2021-04-01 10:37:13.026 Getting current directory name. > 2021-04-01 10:37:13.026 PWD < 2021-04-01 10:37:13.243 257 "/" . 2021-04-01 10:37:13.243 Startup conversation with host finished. . 2021-04-01 10:37:13.277 Retrieving directory listing... > 2021-04-01 10:37:13.277 TYPE A < 2021-04-01 10:37:13.494 200 Switching to ASCII mode. > 2021-04-01 10:37:13.495 PORT 10,11,100,50,26,247 < 2021-04-01 10:37:13.712 200 PORT command successful. Consider using PASV. > 2021-04-01 10:37:13.712 LIST . 2021-04-01 10:37:28.337 Timeout detected. (data connection) . 2021-04-01 10:37:28.337 Could not retrieve directory listing * 2021-04-01 10:37:28.387 (EFatal) **Lost connection.** * 2021-04-01 10:37:28.387 Timeout detected. (data connection) * 2021-04-01 10:37:28.387 Could not retrieve directory listing * 2021-04-01 10:37:28.387 Error listing directory '/'.
Thanks in advance.