如何计算 IPv6 IP 号码?

发布于 2024-08-22 21:18:06 字数 159 浏览 7 评论 0原文

我正在使用 MaxMinds 的 GeoIP Lite Country 将 GeoIP 跟踪添加到 WCF Web 服务。所有这些都适用于他们的 IPv4 数据库,但他们没有提供任何示例来计算 IPv6 IP 号码。我联系了他们,他们说使用搜索引擎。

有人愿意分享样品吗?任何语言都可以。

I'm adding GeoIP tracking to WCF Web Service using MaxMinds' GeoIP Lite Country. All works well for their IPv4 database but they don't give any samples to calculate an IPv6 IP Number. I've contacted them and they said to use a search engine.

Anyone have a sample they're willing to share? Any language will do.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

强辩 2024-08-29 21:18:06

它本身不是重复的问题,而是来自此处

没有 IPv4 到 IPv6 的映射
是有意义的。像 0.0.0.0 和
127.0.0.1 是规范中的特殊情况,因此它们具有相同的含义。
但给定一个 IPv4 地址,它会告诉你
不知道其具体的 IPv6 是什么
地址将是。您可以使用 DNS
查找是否给定的 IP 地址
解析到一个主机,该主机又
解析为 IPv6 地址
除了 IPv4 地址之外,
必须配置 DNS 服务器
支持特定的
机器。

Its not a duplicate question per se, but from here:

There is no IPv4 to IPv6 mapping that
is meaningful. things like 0.0.0.0 and
127.0.0.1 are special cases in the spec, so they have equivalent meaning.
But given an IPv4 address it tells you
nothing about what its specific IPv6
address would be. You can use a DNS
lookup to see if a given IP address
resolves to a host which in turn
resolves to an IPv6 address in
addition to an IPv4 address, but the
DNS server would have to be configured
to support that for the specific
machine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文