SshSession.requestRemoteForward

SshRemoteForwardOperation requestRemoteForward(string bindAddress, ushort bindPort)

Requests a remote TCP/IP listener (tcpip-forward).

When bindPort is 0 the server allocates the port; read it from SshRemoteForwardOperation.boundPort after acceptance. An empty bindAddress fails the operation locally with a typed error before anything is sent.

Parameters

bindAddressAddress the server should listen on.
bindPortPort to bind, or 0 for an allocated port.

Returns

A stable operation driven by session pumping.