@ Trivial public static boolean validLocalHostName ( String hostName ) { InetAddress addr = findLocalHostAddress ( hostName , PREFER_IPV6 ) ; return addr != null ; }
Verifies whether or not the provided hostname references an interface on this machine . The provided name is unchanged by this operation .