public static boolean isValidIpAddress(String ipAddress){
  boolean result=false;
  if ((ipAddress != null) && (!ipAddress.equals("127.0.0.1")) && (!ipAddress.equals("localhost"))) {
    result=true;
  }
  return result;
}

public static boolean isValidIpAddress ( String ipAddress ) { boolean result = false ; if ( ( ipAddress != null ) && ( ! ipAddress . equals ( "127.0.0.1" ) ) && ( ! ipAddress . equals ( "localhost" ) ) ) { result = true ; } return result ; }
is a valid ip address
