title: Renci.SSHnet.Sftp Timeout error
body: <p>I´m trying to use Renci.SShnet.sftp library to make a connection to a ftp server.
  But when I call the sftp.Connect() method I receive the following error message:
  "Socket read operation has timed out after 30000 milliseconds.".
  I'm using Visual Basic .Net on Visual Studio 2017. </p>
  
  <p>My code is below:</p>
  
  <pre><code>Public Function SendFile(ByVal localFilePath As String, ByVal remotePath As String, ByRef errorReturnMessage As String) As Boolean
  
      errorReturnMessage = ""
  
      Try
          Dim test As New Renci.SshNet.SftpClient(serverName, portNumber, userName, passWord)
          test.Connect() '&lt;==== ERROR HERE ======
          test.ChangeDirectory(remotePath)
  
          Dim str As IO.Stream
          str = IO.File.OpenRead(localPathFile)
  
          Dim result As Renci.SshNet.Sftp.SftpUploadAsyncResult = test.BeginUploadFile(str, remotePath)
  
          Do While True
              If result.IsCompleted Then
                  Exit Do
              End If
          Loop
  
          Return True
  
      Catch ex As Exception
          errorReturnMessage = ex.Message
          Return False
      End Try
  End Function
  </code></pre>
  
  <p>I´m trying to connect to upload a file.
  Thanks for any help. </p>
  
  <p>Best regards, 
  Daniel</p>