I have application that uses IPv4 addresses (it stores them as long), so it only understands IPv4 addresses.
Is it possible to convert IPv6 address to IPv4 with Java?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
While there are IPv6 equivalents for the IPv4 address range, you can’t convert all IPv6 addresses to IPv4 – there are more IPv6 addresses than there are IPv4 addresses.
The only sane way around this issue is to update your application to be able to understand and store IPv6 addresses.