private boolean isInterfaceAllowed(NetworkInterface ni) throws SocketException {
  return !ni.isLoopback() && !ni.isPointToPoint() && !ni.isVirtual()&& ni.isUp();
}

private boolean isInterfaceAllowed ( NetworkInterface ni ) throws SocketException { return ! ni . isLoopback ( ) && ! ni . isPointToPoint ( ) && ! ni . isVirtual ( ) && ni . isUp ( ) ; }
check if a given network interface is interesting for us .
