How can I convert IPV6 address to IPV4 address?

前端 未结 5 681
日久生厌
日久生厌 2020-11-28 15:15

I have application that uses IPv4 addresses (it stores them as long), so it only understands IPv4 addresses.

Is it possible to convert

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-28 15:45

    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.

提交回复
热议问题