SshSession.StartTcpIpForward Method
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9083)
StartTcpIpForward(String, Int32)
Starts incoming TCP/IP tunnel on the specified IP address and port at the SSH server.
Declaration
public SshForwardingHandle StartTcpIpForward(string address, int port)
Parameters
Type | Name | Description |
---|---|---|
String | address | Remote IP address to bind to. Most SSH installations only allow 127.0.0.1. |
Int32 | port | Remote port to bind to. Set this to 0 to get a random port automatically. |
Returns
Type | Description |
---|---|
SshForwardingHandle | A forwarding handle. |