@ApiStatus.Internal
  @ApiStatus.Obsolete
  public static boolean canConnectToSocket(String host, int port) {
    if (isLocalhost(host)) {
      return !canBindToLocalSocket(host, port);
    }
    else {
      return canConnectToRemoteSocket(host, port);
    }
  }
@ApiStatus.Internal
  @ApiStatus.Obsolete
  public static boolean canConnectToSocket(String host, int port)