如何将IPV6地址转换为IPV4地址? [英] How can I convert IPV6 address to IPV4 address?
本文介绍了如何将IPV6地址转换为IPV4地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的应用程序使用 IPv4
地址(它将它们存储为长),因此它只能理解 IPv4
地址。
I have application that uses IPv4
addresses (it stores them as long), so it only understands IPv4
addresses.
是否可以将 IPv6
地址转换为 IPv4
与 Java
?
Is it possible to convert IPv6
address to IPv4
with Java
?
推荐答案
当 IPv4地址范围的IPv6等价物,您无法将所有IPv6地址转换为IPv4 - 还有更多的IPv6地址比IPv4地址。
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.
解决此问题的唯一方法是更新您的应用程序,以便能够理解和存储IPv6地址。
The only sane way around this issue is to update your application to be able to understand and store IPv6 addresses.
这篇关于如何将IPV6地址转换为IPV4地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文