NetworkAddress.getPort

ushort getPort()

Gets addr's port number

Returns

addr's port (which may be 0)