Can't open data connection issue

Advertisement

AsteroidS
Guest

Can't open data connection issue

Hi guys,

I'm new to using WinSCP.

2012-12-21 11:31:47.327 --------------------------------------------------------------------------
. 2012-12-21 11:31:47.327 WinSCP Version 5.1.2 (Build 2816) (OS 6.1.7600)
. 2012-12-21 11:31:47.327 Configuration: C:\Cygwin\bin\WinSCP_kelvin.ini
. 2012-12-21 11:31:47.327 Local account: ASTEROIDS\rtdadmin
. 2012-12-21 11:31:47.327 Working directory: C:\Users\rtdadmin\Desktop
. 2012-12-21 11:31:47.327 Command-line: "c:\cygwin\bin\WinSCP.exe" /console=512 /consoleinstance=_4264_168 "/log=C:\winscp_kelvin.log" "/ini=C:\Cygwin\bin\WinSCP_kelvin.ini" "/command" "option batch on" "option confirm off" "open -explicitssl -passive=off -certificate=be:b9:b9:54:f6:bd:cd:4e:19:a9:41:8f:da:a8:61:f0:b8:35:1a:38 ftp://asteroids:WZqPMlTB@81.56.203.67:1064"
. 2012-12-21 11:31:47.327 Time zone: Current: GMT+8, Standard: GMT+8, DST: GMT+9, DST Start: 12/30/1899, DST End: 12/30/1899
. 2012-12-21 11:31:47.327 Login time: Friday, December 21, 2012 11:31:47 AM
. 2012-12-21 11:31:47.327 --------------------------------------------------------------------------
. 2012-12-21 11:31:47.327 Session name: asteroids@81.56.203.67 (Ad-Hoc session)
. 2012-12-21 11:31:47.327 Host name: 81.56.203.67 (Port: 1064)
. 2012-12-21 11:31:47.327 User name: asteroids (Password: Yes, Key file: No)
. 2012-12-21 11:31:47.327 Tunnel: No
. 2012-12-21 11:31:47.327 Transfer Protocol: FTP
. 2012-12-21 11:31:47.327 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2012-12-21 11:31:47.327 Proxy: none
. 2012-12-21 11:31:47.327 FTP: FTPS: Explicit SSL; Passive: No [Force IP: A]
. 2012-12-21 11:31:47.327 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2012-12-21 11:31:47.327 Cache directory changes: Yes, Permanent: Yes
. 2012-12-21 11:31:47.327 DST mode: 1
. 2012-12-21 11:31:47.327 --------------------------------------------------------------------------
. 2012-12-21 11:31:47.343 Connecting to 81.56.203.67:1064 ...
. 2012-12-21 11:31:47.406 Connected with 81.56.203.67:1064, negotiating SSL connection...
< 2012-12-21 11:31:47.468 220-FileZilla Server version 0.9.41 beta
< 2012-12-21 11:31:47.468 220-written by anonymous tester
< 2012-12-21 11:31:47.468 220 Please visit www
> 2012-12-21 11:31:47.468 AUTH SSL
< 2012-12-21 11:31:48.187 234 Using authentication type SSL
. 2012-12-21 11:31:48.749 SSL connection established. Waiting for welcome message...
> 2012-12-21 11:31:48.749 USER asteroids
< 2012-12-21 11:31:48.796 331 Password required for asteroids
> 2012-12-21 11:31:48.796 PASS ********
< 2012-12-21 11:31:48.859 230 Logged on
> 2012-12-21 11:31:48.859 SYST
< 2012-12-21 11:31:48.921 215 UNIX emulated by FileZilla
> 2012-12-21 11:31:48.921 FEAT
< 2012-12-21 11:31:48.968 211-Features:
< 2012-12-21 11:31:48.968 MDTM
< 2012-12-21 11:31:48.968 REST STREAM
< 2012-12-21 11:31:48.968 SIZE
< 2012-12-21 11:31:48.968 MLST type*;size*;modify*;
< 2012-12-21 11:31:48.968 MLSD
< 2012-12-21 11:31:48.968 AUTH SSL
< 2012-12-21 11:31:48.968 AUTH TLS
< 2012-12-21 11:31:48.968 PROT
< 2012-12-21 11:31:48.968 PBSZ
< 2012-12-21 11:31:48.968 UTF8
< 2012-12-21 11:31:48.968 CLNT
< 2012-12-21 11:31:48.968 MFMT
< 2012-12-21 11:31:48.968 211 End
> 2012-12-21 11:31:48.968 PBSZ 0
< 2012-12-21 11:31:49.031 200 PBSZ=0
> 2012-12-21 11:31:49.031 PROT P
< 2012-12-21 11:31:49.093 200 Protection level set to P
. 2012-12-21 11:31:49.093 Connected
. 2012-12-21 11:31:49.093 --------------------------------------------------------------------------
. 2012-12-21 11:31:49.093 Using FTP protocol.
. 2012-12-21 11:31:49.093 Doing startup conversation with host.
> 2012-12-21 11:31:49.093 PWD
< 2012-12-21 11:31:49.156 257 "/" is current directory.
. 2012-12-21 11:31:49.156 Getting current directory name.
. 2012-12-21 11:31:49.156 Startup conversation with host finished.
< 2012-12-21 11:31:49.156 Script: Active session: [1] asteroids@81.56.203.67
> 2012-12-21 11:31:53.546 Script: cd Temp
. 2012-12-21 11:31:53.546 Cached directory change via "Temp" to "/Temp".
. 2012-12-21 11:31:53.546 Getting current directory name.
< 2012-12-21 11:31:53.546 Script: /Temp
> 2012-12-21 11:31:55.593 Script: ls
. 2012-12-21 11:31:55.593 Retrieving directory listing...
> 2012-12-21 11:31:55.593 CWD /Temp/
< 2012-12-21 11:31:55.656 250 CWD successful. "/Temp" is current directory.
> 2012-12-21 11:31:55.656 PWD
< 2012-12-21 11:31:55.718 257 "/Temp" is current directory.
> 2012-12-21 11:31:55.718 TYPE A
< 2012-12-21 11:31:55.781 200 Type set to A
> 2012-12-21 11:31:55.781 PORT 222,128,98,59,238,51 ---> Port used is 60979, i need to change this to between 49100-49120. Any idea how?
< 2012-12-21 11:31:55.827 200 Port command successful
> 2012-12-21 11:31:55.827 MLSD
< 2012-12-21 11:31:55.890 150 Opening data channel for directory list.
< 2012-12-21 11:32:06.312 425 Can't open data connection.
. 2012-12-21 11:32:06.312 Could not retrieve directory listing
. 2012-12-21 11:32:06.312 Asking user:
. 2012-12-21 11:32:06.312 Error listing directory '/Temp'. ("The server cannot open connection in active mode. If you are behind a NAT router, you may need to specify an external IP address. Alternatively, consider switching to passive mode.","Could not retrieve directory listing","Can't open data connection.")
< 2012-12-21 11:32:06.312 Script: Error listing directory '/Temp'.
< 2012-12-21 11:32:06.312 Script: The server cannot open connection in active mode. If you are behind a NAT router, you may need to specify an external IP address. Alternatively, consider switching to passive mode.

< 2012-12-21 11:32:06.312 Could not retrieve directory listing

< 2012-12-21 11:32:06.312 Can't open data connection.
. 2012-12-21 11:32:06.312 Script: Failed

Reply with quote

Advertisement

Guest

as per above log.

> 2012-12-21 11:31:55.781 PORT 222,128,98,59,238,51 ---> Port used is 60979, i need to change this to between 49100-49120. Any idea how?

Reply with quote

AsteroidS
Joined:
Posts:
2
Location:
Taiwan

setting the following in WinSCP.ini does not seem to help:

TunnelLocalPortNumberLow=49100
TunnelLocalPortNumberHigh=49120

Reply with quote

AsteroidS
Joined:
Posts:
2
Location:
Taiwan

for filezilla i can specify:

<invalid hyperlink removed by admin>

anyway to do that for WinSCP?

setting the following in WinSCP.ini does not seems to work...
TunnelLocalPortNumberLow=49100
TunnelLocalPortNumberHigh=49120

Reply with quote

Advertisement

RLWink
Guest

Transfer Channel Cannot be Opened

Also: "Error Listing Directory". I am on the latest version 5.1.3. I have seen this error posted several times here on support, going back a couple of years. I believe it is related to port blocking, since FTP randomly selects a port - So some networks are blocking certain ports. I have seen other clients that have fixed this problem. Is there an ETA for resolution? I love your product, except for this bug. Thanks
Description: Error log

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Transfer Channel Cannot be Opened

RLWink wrote:

Also: "Error Listing Directory". I am on the latest version 5.1.3. I have seen this error posted several times here on support, going back a couple of years. I believe it is related to port blocking, since FTP randomly selects a port - So some networks are blocking certain ports. I have seen other clients that have fixed this problem. Is there an ETA for resolution? I love your product, except for this bug. Thanks
To be honest I'm not sure what I can do about this. Any suggestion?

Reply with quote

Advertisement

You can post new topics in this forum