protected static void assertPortAvailable(final int port) throws BindException {
    assertPortAvailable(null, port);
  }
Asserts that the specified port is available on all network interfaces on this local system.

@param port an integer indicating the network port to listen for client network requests.
@throws BindException if the network port is not available.
geode-core/src/main/java/org/apache/geode/distributed/AbstractLauncher.java