| 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
|
 |
 |
|
|
subject: API to convert IPV6 address to IPV4 ?
|
|
|