title: .NET SSH tunnel - Object of type “System.Net.Sockets.Socket” cannot be converted to object of type “System.Net.Sockets.TcpListener”
body: <p>I try to use the code of <a href="https://gist.github.com/chilversc/5575617#file-gistfile1-cs-L48" rel="nofollow noreferrer">chilversc</a> and I get the error message at this line</p>
  
  <pre><code>var listener = (TcpListener) typeof (ForwardedPortLocal).GetField ("_listener", BindingFlags.Instance | BindingFlags.NonPublic).GetValue (port);
  </code></pre>
  
  <p>What could be the error?</p>