public static boolean isCompleteHost(final String host) {
        if (host == null) {
            return false;
        }
        return IP_PATTERN.matcher(host).matches();
    }
@Test
    public void testIsCompleteHost() {
        assertTrue(IpUtils.isCompleteHost("192.168.1.166"));
        assertFalse(IpUtils.isCompleteHost("192.168."));
        assertFalse(IpUtils.isCompleteHost("192.."));
    }