Search code examples
javalinuxip-addressipv6ipv4

Decimal formatted IPV6 ip address or extract IPV4 from IPV6


Is there any JAVA or LINUX way to extract decimal formatted IPV6 ip address. Or Is there any JAVA or LINUX way to covert IPV6 ip to IPV4 format.

Thanks. Dnyanesh.


Solution

  • Is there any JAVA or LINUX way to extract decimal formatted IPV6 ip address.

    No. IPv6 addresses are always presented in hexadecimal.

    Or Is there any JAVA or LINUX way to covert IPV6 ip to IPV4 format.

    No. They're completely different address types.