ForwardedPortLocal Constructor (UInt32, String, UInt32)SSH .NET Client Library Documentation
Initializes a new instance of the ForwardedPortLocal class.

Namespace: Renci.SshNet
Assembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax

public ForwardedPortLocal(
	uint boundPort,
	string host,
	uint port
)
Examples

client.Connect();
var port = new ForwardedPortLocal(8082, "www.cnn.com", 80);
client.AddForwardedPort(port);
port.Exception += delegate(object sender, ExceptionEventArgs e)
{
    Console.WriteLine(e.Exception.ToString());
};
port.Start();

Thread.Sleep(1000 * 60 * 20); //    Wait 20 minutes for port to be forwarded

port.Stop();
See Also