On Unix, use the default IANA ephemeral port range if unable to retrieve the current system's range.

Fixes issue 6612