public static function isIPLanAddress($string) {
        $bytes = self::isIPAddress($string, true);

        if ($bytes) {
            if ($bytes[0] == 10)                   // 10.0.0.0 - 10.255.255.255
                return true;

            if ($bytes[0] == 172)                  // 172.16.0.0 - 172.31.255.255
                return (15 < $bytes[1] && $bytes[1] < 32);

            if ($bytes[0]==192 && $bytes[1]==168)  // 192.168.0.0 - 192.168.255.255
                return true;
        }

        return false;
    }