ITcpTunnel.GetLocalPort()

DESCRIPTION

Get the local port which the tunnel is bound to.

DECLARATION

UInt16 GetLocalPort()

ERRORS

  • T:Nabto.Edge.Client.NabtoException: NabtoException with error code INVALID_STATE if the tunnel is not open.
  • T:Nabto.Edge.Client.NabtoException: Thrown with error code INVALID_STATE if the tunnel has not been opened ye..

RETURNS

the local port number used.