Server sent passive reply with unroutable address, using host address instead | Could not retrieve
Dear all,
I would like to say thank you everyone who supports WinSCP. I really love it. But it appears one issue that I could not still resolve.
I'm using last available version of WinSCP.
I have simple script to get files:
And I receiving following errors:
Using host address IP instead of the one suggested by the server: IP2
I tried to use FTP and FTPS and it works for FileZilla but failed with WinSCP.
Not sure if there any additional setting that I need to put for WinSCP to get this resolved.
BTW I increased timeout but this did not help.
Thank you in advance for your help,
I would like to say thank you everyone who supports WinSCP. I really love it. But it appears one issue that I could not still resolve.
I'm using last available version of WinSCP.
I have simple script to get files:
option batch continue option confirm off open ftp://login:password@ip:port -passive=on lcd \\localserver\folder$ cd /ftpfolder/folder synchronize local exit
I tried to use WinSCP GUI and there is the same error.TLS connection established. Waiting for welcome message...
Connected
Starting the session...
Session started.
Active session
\\localserver\folder$
/ftpfolder/folder
Comparing...
Local '\\localserver\folder$\2014\12' <= Remote '/ftpfolder/folder/2014/12'
Error listing directory '/ftpfolder/folder/2014/12'.
Server sent passive reply with unroutable address IP, using host address instead.
Transfer channel can't be opened. Reason: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Could not retrieve directory listing
Using host address IP instead of the one suggested by the server: IP2
At the same time it works fine with FileZilla:Timeout detected. (data connection)
Could not retrieve directory listing
I saw there the same error in in the FileZilla:Command: PASV
Command: USER USER
Status: TLS/SSL connection established.
Response: 331 Password required for LOGIN.
Command: PASS *********
Response: 227 Entering Passive Mode (ip,195,87).
Status: Server sent passive reply with unroutable address. Using server address instead.
Command: LIST
Response: 150 Opening BINARY mode data connection.
Response: 230 User logged in.
Command: OPTS UTF8 ON
Response: 200 OPTS UTF8 command successful - UTF8 encoding now ON.
Command: PBSZ 0
Response: 200 PBSZ command successful.
Command: PROT P
Status: Verifying certificate...
Response: 200 PROT command successful.
Status: Connected
Command: USER USER
Status: Starting download of /folder/folder/2014/12/31/file.txt
Command: CWD /folder/folder/2014/12/31
Status: TLS/SSL connection established.
Response: 331 Password required for USER.
Command: PASS *********
Response: 250 CWD command successful.
Command: PWD
Response: 257 “/folder/folder/2014/12/31" is current directory.
Command: TYPE I
Response: 230 User logged in.
Command: OPTS UTF8 ON
Response: 200 Type set to I.
Command: PASV
Response: 200 OPTS UTF8 command successful - UTF8 encoding now ON.
Command: PBSZ 0
Response: 200 PBSZ command successful.
Command: PROT P
Response: 227 Entering Passive Mode (ip).
Status: Server sent passive reply with unroutable address. Using server address instead.
Command: RETR file.txt
Response: 200 PROT command successful.
Status: Connected
Response: 150 Opening BINARY mode data connection.
Status: Starting download of /folder/folder/2014/12/31/file.txt
Command: CWD /folder/folder/2014/12/31
Response: 250 CWD command successful.
but it works and copy files successfully."Server sent passive reply with unroutable address. Using server address instead"
I tried to use FTP and FTPS and it works for FileZilla but failed with WinSCP.
Not sure if there any additional setting that I need to put for WinSCP to get this resolved.
BTW I increased timeout but this did not help.
Thank you in advance for your help,