passive_endpoint: discover the port set by the system when requesting random port (0)