java - How to convert an address from IPv4 to IPv6 -


is possible? how can convert ipv4 ipv6 address?

a few example here:

0.0.0.0   -> :: 127.0.0.1 -> ::1 

i'm searching solution in java.

thanks,

there no ipv4 ipv6 mapping meaningful. things 0.0.0.0 , 127.0.0.1 special cases in spec, have equivalent meaning. given ipv4 address tells nothing specific ipv6 address be. can use dns lookup see if given ip address resolves host in turn resolves ipv6 address in addition ipv4 address, dns server have configured support specific machine.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -