TcpListener.getLocalPort

Get the port to which the socket is bound locally.

If the socket is not listening to a port, this function returns 0.

class TcpListener
ushort
getLocalPort
(
)

Return Value

Type: ushort

Port to which the socket is bound.

Meta