Topic "Server sent passive reply with unroutable address, using host address instead | Could not retrieve"

Author Message
Guest




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:

option batch continue
option confirm off
open ftp://login:password@ip:port -passive=on
lcd \\localserver\folder$
cd /ftpfolder/folder
synchronize local
exit

And I receiving follwoing errors:

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

I tried to use WinSCP GUI and there is the same error.

Using host address IP instead of the one suggested by the server: IP2
Timeout detected. (data connection)
Could not retrieve directory listing

At the same time it works fine with 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.

I saw there the same error in in the FileZilla "Server sent passive reply with unroutable address. Using server address instead", but it works and copy files successfully.

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,
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Please attach a complete log file both from WinSCP and FileZilla. Please do not obfuscate the IP addresses, otherwise it's pointless. They are important for this particular issue.

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License