public static Inet4Address getCompatIPv4Address ( Inet6Address ip ) { checkArgument ( isCompatIPv4Address ( ip ) , "Address '%s' is not IPv4-compatible." , toAddrString ( ip ) ) ; return getInet4Address ( Arrays . copyOfRange ( ip . getAddress ( ) , 12 , 16 ) ) ; }
Returns the IPv4 address embedded in an IPv4 compatible address .