Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Jens Lehmann

Re: Connecting to IPv6-address via IPv4-Tunnel doesn't work on command line

Hi Martin,

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

Jens
martin

Re: Connecting to IPv6-address via IPv4-Tunnel doesn't work on command line

Thanks for your report.

This issue has been added to the tracker:
https://winscp.net/tracker/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

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

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