Ssh.StartSocksServer Method
Namespace: Rebex.Net
Assembly: Rebex.SshShell.dll (version 7.0.9119)
StartSocksServer(String, Int32)
Starts a new outgoing tunnel. Connections to local host/port will be tunneled through the SSH server to the specified remote host/port.
Declaration
public SshTunnel StartSocksServer(string localHostName, int localPort)
Parameters
Type | Name | Description |
---|---|---|
String | localHostName | Local hostname to listen at. |
Int32 | localPort | Local port to listen at. |
Returns
Type | Description |
---|---|
SshTunnel | A tunnel instance. |
StartSocksServer(IPEndPoint)
Starts a new outgoing tunnel. Connections to local endpoint will be tunneled through the SSH server to the specified remote host/port.
Declaration
public SshTunnel StartSocksServer(IPEndPoint localEndPoint)
Parameters
Type | Name | Description |
---|---|---|
IPEndPoint | localEndPoint | Local endpoint to listen at. |
Returns
Type | Description |
---|---|
SshTunnel | A tunnel instance. |