ICI Modules: net: getportno
Modules by name : by typeSynopsis
int = net.getportno(socket)Description
Return the local port number associated with a socket. This is typically used following a call to net.bind() with no address argument. Such a call has the system select a port number to be bound and this call subsequently retrieves it.