fluentftp

FluentFTP - Getting error while connecting “Timed out trying to read data from the socket stream!”

时光毁灭记忆、已成空白 提交于 2019-12-01 04:24:41
问题 Getting Timed out trying to read data from the socket stream! when connecting to FTP using FluentFTP. Below is the source code which I am using to connect: Console.WriteLine("Configuring FTP to Connect to {0}", hostname); ftp = new FtpClient(hostname,port,new NetworkCredential(username,password)); ftp.ConnectTimeout = 600000; ftp.ReadTimeout = 60000; ftp.EncryptionMode = FtpEncryptionMode.Explicit; ftp.SslProtocols = System.Security.Authentication.SslProtocols.Tls; ftp.ValidateCertificate +=