IP*Works! SSH V9 - Online Help
IP*Works! SSH V9
Questions / Feedback?

RequestTcpIpForwarding Method

Requests the server to forward a remote TCP/IP port.

Syntax

sshreversetunnel.requestTcpIpForwarding(address, port, [callback])

Callback

The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).

The callback for this method is defined as:

function(err){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'err' has 2 properties which hold detailed information:

err.code
err.message

Remarks

The RequestTcpIpForwarding method asks the server to listen at the specified TCP/IP Address and Port for connection requests and then forward them as new SSH channels to the class.

The Address argument can specified in different ways:

  • "" means that connections are to be accepted on all protocol families supported by the server.
  • "0.0.0.0" means to listen on all IPv4 addresses.
  • "::" means to listen on all IPv6 addresses.
  • "localhost" means to listen on all protocol families supported by the SSH implementation on loopback addresses only.
  • "127.0.0.1" and "::1" indicate listening on the loopback interfaces for IPv4 and IPv6, respectively.

Passing a value of 0 for the Port parameter instructs the server to assign a port. In this case, query the ForwardedPort setting to determine the port that was assigned by the server.

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 9.0.6240.0