question: private static boolean isIPv4 ( String host ) { String regex = "\\d{1,3}.\\d{1,3}.\\d{1,3}.\\d{1,3}" ; return host . matches ( regex ) ; }
target:  Checks if the given host name is actually a String representation of an IPv4 address.