0 if not listening.TcpListener.localPort
ushort localPort() @property const @safe nothrow @nogcReport the effective local port once listening.
Returns
Port number the listener is bound to, or
ushort localPort() @property const @safe nothrow @nogcReport the effective local port once listening.
0 if not listening.