TcpTunnel.getLocalPort()

DESCRIPTION

Get the local port which the tunnel is bound to.

DECLARATION

    public int getLocalPort()

THROWS EXCEPTIONS

NabtoRuntimeException:
with error code INVALID_STATE if the tunnel is not open.

RETURNS

the local port number used.