Topic "Network error: Connection timed out"

Author Message
Derrick
[View user's profile]

Joined: 2016-09-15
Posts: 1
Location: UK
Hi,
I'm getting an occasional connection timeout after < 30 seconds even though I've set the timeout to 120 seconds.
Please could you let me know what I've missed.

2016-09-15 14:25:03.449 Transfer Protocol: SFTP
. 2016-09-15 14:25:03.449 Ping type: -, Ping interval: 30 sec; Timeout: 120 sec
. 2016-09-15 14:25:03.449 Proxy: none

. 2016-09-15 14:25:03.449 Looking up host "XXX.XXX.XXX.XXX"
. 2016-09-15 14:25:03.449 Connecting to XXX.XXX.XXX.XXX port 22
. 2016-09-15 14:25:24.478 Failed to connect to XXX.XXX.XXX.XXX: Network error: Connection timed out
. 2016-09-15 14:25:24.494 Knocking FTP port.
. 2016-09-15 14:25:26.522 FTP port did not open.

Code:
With mySessionOptions
.Protocol = Protocol.Sftp
.HostName = "XXX.XXX.XXX.XXX"
.UserName = "XXXXXXXX"
.Password = "XXXXXXXX"
.PortNumber = 22
.SshHostKeyFingerprint = "ssh-rsa 1024 XX:XX:XX:CC:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX"
.Timeout = New TimeSpan(0, 2, 0) ' 2 mins
End With
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Thanks for your report.
I have sent you an email with a debug version of WinSCP to the address you have used to register on this forum.
Advertisements

You can post new topics in this forum






Search Site

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