[java] pick random port outside of well-known ranges of ephemeral ports (#10990)
[java] pick random port outside of well-known ranges of ephemeral ports (#10990)

pick random port outside of well-known ranges of ephemeral ports

Let port prober choose from a safe range of ephemeral ports that
explicitly exclude the well-known range of ephemeral ports used by the
OS for port allocation as was done in Selenium v3.

Keep fallback to IANA port range in case range of ephemeral ports
is too low (less than 5k).

Fixes #10974

Co-authored-by: Diego Molina <bb22cf37947d84e3dd6d6c3568ebe68e7d79c52d@users.noreply.github.com>
titusfortner/selenium,SeleniumHQ/selenium,valfirst/selenium,SeleniumHQ/selenium,valfirst/selenium,joshmgrant/selenium,valfirst/selenium,valfirst/selenium,titusfortner/selenium,SeleniumHQ/selenium,titusfortner/selenium,titusfortner/selenium,SeleniumHQ/selenium,joshmgrant/selenium,titusfortner/selenium,valfirst/selenium,titusfortner/selenium,joshmgrant/selenium,SeleniumHQ/selenium,valfirst/selenium,SeleniumHQ/selenium,SeleniumHQ/selenium,joshmgrant/selenium,valfirst/selenium,SeleniumHQ/selenium,SeleniumHQ/selenium,valfirst/selenium,titusfortner/selenium,joshmgrant/selenium,joshmgrant/selenium,valfirst/selenium,titusfortner/selenium,titusfortner/selenium,SeleniumHQ/selenium,joshmgrant/selenium,joshmgrant/selenium,valfirst/selenium,joshmgrant/selenium,titusfortner/selenium,joshmgrant/selenium,valfirst/selenium,titusfortner/selenium,SeleniumHQ/selenium,joshmgrant/selenium