Topic "Proxy request failed, can't connect through proxy server"

Author Message
keviejay
[View user's profile]

Joined: 2016-04-15
Posts: 3
The ftp client is able to see the file and connect to the server, but the handshake is failing. I am able to use the GUI client to access the same file with no issues. If I do not use the proxy in my code, the transfer fails on a timeout.

< 2016-04-14 16:45:02.621 Script: Connecting to ftp2.nyxdata.com ...
. 2016-04-14 16:45:02.622 Connecting to ftp2.nyxdata.com ...
< 2016-04-14 16:45:02.673 Script: Connection with proxy established, performing handshake...
. 2016-04-14 16:45:02.740 Connection with proxy established, performing handshake...
. 2016-04-14 16:45:02.752 Connected with ftp2.nyxdata.com. Waiting for welcome message...
< 2016-04-14 16:45:02.813 220 ftpnj.nyxdata.com
> 2016-04-14 16:45:02.813 USER XXXXX
< 2016-04-14 16:45:02.886 331 Password required for XXXXX
> 2016-04-14 16:45:02.886 PASS **********
< 2016-04-14 16:45:03.534 230 User XXXXX logged in
> 2016-04-14 16:45:03.535 SYST
< 2016-04-14 16:45:03.610 215 UNIX Type: L8
> 2016-04-14 16:45:03.610 FEAT
< 2016-04-14 16:45:03.685 211-Features:
< 2016-04-14 16:45:03.685 MDTM
< 2016-04-14 16:45:03.685 MFMT
< 2016-04-14 16:45:03.685 TVFS
< 2016-04-14 16:45:03.685 MFF modify;UNIX.group;UNIX.mode;
< 2016-04-14 16:45:03.685 MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*;
< 2016-04-14 16:45:03.685 REST STREAM
< 2016-04-14 16:45:03.685 SIZE
< 2016-04-14 16:45:03.686 211 End
< 2016-04-14 16:45:03.686 Script: Connected
. 2016-04-14 16:45:03.686 Connected
. 2016-04-14 16:45:03.686 Doing startup conversation with host.
< 2016-04-14 16:45:03.686 Script: Starting the session...
> 2016-04-14 16:45:03.686 PWD
< 2016-04-14 16:45:03.776 257 "/" is the current directory
. 2016-04-14 16:45:03.776 Changing directory to "/".
> 2016-04-14 16:45:03.776 CWD /
< 2016-04-14 16:45:03.851 250 CWD command successful
. 2016-04-14 16:45:03.851 Getting current directory name.
> 2016-04-14 16:45:03.852 PWD
< 2016-04-14 16:45:03.926 257 "/" is the current directory
. 2016-04-14 16:45:03.926 Startup conversation with host finished.
< 2016-04-14 16:45:03.926 Script: Session started.
. 2016-04-14 16:45:03.927 File: '/XXXXXXXXXXXXXXX/BIOSC.txt' [2016-04-01T22:21:24.000Z] [28254]
. 2016-04-14 16:45:03.927 Copying "/XXXXXXXXXXXXXXX/BIOSC.txt" to local directory started.
. 2016-04-14 16:45:03.927 Binary transfer mode selected.
. 2016-04-14 16:45:03.928 Starting download of /XXXXXXXXXXXXXXX/BIOSC.txt
> 2016-04-14 16:45:03.928 CWD /XXXXXXXXXXXXXXX/
< 2016-04-14 16:45:04.849 250 CWD command successful
> 2016-04-14 16:45:04.849 PWD
< 2016-04-14 16:45:04.924 257 "/XXXXXXXXXXXXXXX/" is the current directory
> 2016-04-14 16:45:04.925 TYPE A
< 2016-04-14 16:45:05.000 200 Type set to A
> 2016-04-14 16:45:05.000 PASV
< 2016-04-14 16:45:05.074 227 Entering Passive Mode (216,206,127,27,110,159).
. 2016-04-14 16:45:05.074 FtpControlSocket.cpp(6604): Error retrieving server address, cannot test if address is routable caller=0x01073de8
> 2016-04-14 16:45:05.075 MLSD
. 2016-04-14 16:45:05.156 Connection with proxy established, performing handshake...
. 2016-04-14 16:45:08.098 Proxy request failed, can't connect through proxy server
. 2016-04-14 16:45:08.098 Transfer channel can't be opened. Reason: An established connection was aborted by the software in your host machine.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Please attach a full log file both from GUI and code (using the latest version of WinSCP).
keviejay
[View user's profile]

Joined: 2016-04-15
Posts: 3
I have attached the 2 logs. Thank you.
NETLog.txt (7.5 KB) [Download]

Description: Log for .NET

GUILog.txt (98.57 KB) [Download]

Description: Log for the GUI

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
In the GUI, you have Force IP address for passive mode connections enabled.
https://winscp.net/eng/docs/ui_login_ftp

To enable it in the GUI, use:

SessionOptions.AddRawSettings("FtpForcePasvIp2", "0");

See https://winscp.net/eng/docs/rawsettings
keviejay
[View user's profile]

Joined: 2016-04-15
Posts: 3
Thank you. I had some white space after the property name.
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