Proxy request failed, can't connect through proxy server
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.
< 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.