jQuery in Action, 2nd edition
The moose likes Sockets and Internet Protocols and the fly likes API to convert IPV6 address to IPV4 ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "API to convert IPV6 address to IPV4 ?" Watch "API to convert IPV6 address to IPV4 ?" New topic
Author

API to convert IPV6 address to IPV4 ?

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 758
In java, do we have an API to convert IPV6 address to IPV4 ? like "fe80::198:8ad2:22fe:2bff84"--> "127.0.0.1"

Thanks.

Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

I doubt it is possible; IPv6 can hold so many more IP addresses than IPv4. It's like trying to squeeze 100 clowns into a car that can hold only 10 clowns.

And your example mapping is invalid; that IP address is definitely not 127.0.0.1; that's ::1.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: API to convert IPV6 address to IPV4 ?
 
Similar Threads
Removing Eclipse Ganymede
Fetcth the Router's Mac Address
Getting ipv4 remote address from FacesContext
IP address regular expression
Server Host/Port Validation