Topic "Connecting to IPv6-address via IPv4-Tunnel doesn't work on command line"

Author Message
Jens Lehmann
[View user's profile]
Donor
Joined: 2017-08-21
Posts: 2
Location: Germany
Hi,

There is an issue with parsing an IPv6 address on the command line if a tunnel is used at the same time. It does work within a normal WinSCP-stored-sesssion, but it doesn't work using the /rawsettings switch for the tunnel. After the connection dialog is shown, it stops with an error message "Network error: Connection to 127.0.0.1 refused".

WinSCP v5.11
Tested on Win7 / Win10

I used the following command line:
WinSCP.exe sftp://<user>:<pwd>@[<IPv6-address>] /rawsettings Tunnel=1 TunnelHostName=<IPv4-Address> TunnelUserName=<user> TunnelPasswordPlain=<pwd>

I've a linux VM which has an IPv4 and IPv6 address. It's easily reproducible this way. Attached are two debug-logfiles. One does show how the connection is failing if it is started via command line, and the second logfile is the same connection-setup just as a stored session (which is working correctly).

If more details are needed, just let me know.
Thanks in advance.

Jens
winscp-debug-IPv4Tunnel-to-IPv6Taget.zip (10.01 KB) Private file

Description: (none)

martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27058
Location: Prague, Czechia
Thanks for your report.

This issue has been added to the tracker:
https://winscp.net/tracker/show_bug.cgi?id=1553

I'm sending you an email with a development version of WinSCP to the address you have used to register on this forum.
Jens Lehmann
[View user's profile]
Donor
Joined: 2017-08-21
Posts: 2
Location: Germany
Hi Martin,

It works like intended now.
Thank you very much .. as well for providing the fix so quickly Smile

Jens
Advertisements

You can post new topics in this forum

Search

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