Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Convert from IPv6 to IPv4

843840Jan 17 2008 — edited Jan 18 2008
Hi,

when using: request.getRemoteAddr() I get the ip in IPv6 format.
But, I am using maxmind to get geo information, which needs ip in IPv4 format.

How can I convert from IPv6 to IPv4?

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 15 2008
Added on Jan 17 2008
1 comment
369 views