I have dual stack machine .
My problem is i am getting only IPv4 using
InetAddress address = InetAddress.getLocalHost();
and If i use Network Interface API then i get all the IP address in which includes my MAC addrres as well in the form of IP address.
Now is there any way i can get both IPv4 and IPv6 of my machine.