Starts a new outgoing tunnel. Connections to local host/port will be tunneled through the SSH server to the specified remote host/port.

Namespace:  Rebex.Net
Assembly:  Rebex.SshShell (in Rebex.SshShell.dll)

Syntax

Visual Basic
Public Function StartOutgoingTunnel ( _
	localHostName As String, _
	localPort As Integer, _
	targetHostName As String, _
	targetPort As Integer _
) As SshTunnel
C#
public SshTunnel StartOutgoingTunnel(
	string localHostName,
	int localPort,
	string targetHostName,
	int targetPort
)

Parameters

localHostName
Type: System..::..String
Local hostname to listen at.
localPort
Type: System..::..Int32
Local port to listen at.
targetHostName
Type: System..::..String
Target hostname to which to tunnel connections.
targetPort
Type: System..::..Int32
Target port to which to tunnel connections.

Return Value

A tunnel instance.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also