public static boolean isLoopback(Object host){
  if (host instanceof InetAddress) {
    return LOOPBACK.equals(host);
  }
 else {
    return isLoopback(InetAddressUtil.toInetAddress(host.toString()));
  }
}

public static boolean isLoopback ( Object host ) { if ( host instanceof InetAddress ) { return LOOPBACK . equals ( host ) ; } else { return isLoopback ( InetAddressUtil . toInetAddress ( host . toString ( ) ) ) ; } }
returns true if host matches the loopback ( 127 . 0 . 0 . 1 ) .
