Starts a new incoming tunnel. Connections to remote endpoint will be tunneled from the SSH server through the local machine to the specified target.

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

Syntax

Visual Basic
Public Function StartIncomingTunnel ( _
	remoteAddress As String, _
	remotePort As Integer, _
	targetHostName As String, _
	targetPort As Integer _
) As SshTunnel
C#
public SshTunnel StartIncomingTunnel(
	string remoteAddress,
	int remotePort,
	string targetHostName,
	int targetPort
)

Parameters

remoteAddress
Type: System..::..String
Remote address from which to tunnel connections.
remotePort
Type: System..::..Int32
Remote port from which to tunnel connections.
targetHostName
Type: System..::..String
Local address to which to tunnel connections.
targetPort
Type: System..::..Int32
Local port to which to tunnel connections.

Return Value

A tunnel instance.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also