public static Inet4Address get6to4IPv4Address ( Inet6Address ip ) { Preconditions . checkArgument ( is6to4Address ( ip ) , "Address '%s' is not a 6to4 address." , toAddrString ( ip ) ) ; return getInet4Address ( Arrays . copyOfRange ( ip . getAddress ( ) , 2 , 6 ) ) ; }
Returns the IPv4 address embedded in a 6to4 address .