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

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

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 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 (10.01 KB) Private file

Description: (none)

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

This issue has been added to the tracker:

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]
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


You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License