谷歌应用程序引擎日志和IP地址
当我通过谷歌应用程序引擎仪表板/日志查看日志时 我看到这样的事情:
90.221.1.202 - - [19/Jan/2012:08:45:34 -0800] "GET ..."
...
...
我了解到 90.221.1.202 是访问我网站的人的 IP 地址。
有时(虽然不是很频繁) 我的日志如下所示:
2b01:e35:7b75:b750:c835:f3ad:ed1:d3a8 - - [19/Jan/2012:12:57:39 -0800] "GET ..."
...
...
上面的 2b01:e35:7b75:b750:c835:f3ad:ed1:d3a8 是 IP 地址吗? 如果是的话我该如何计算出它的 4 字节表示形式?
注意:出于隐私原因,报告的示例已被修改。所以它们不是真正的ip。
When I look at the logs via the google app engine dashboard/log
I see things like this:
90.221.1.202 - - [19/Jan/2012:08:45:34 -0800] "GET ..."
...
...
I learnt that 90.221.1.202 is the ip-address of the person who's visiting my website.
Sometimes (not very often though)
my logs look like this:
2b01:e35:7b75:b750:c835:f3ad:ed1:d3a8 - - [19/Jan/2012:12:57:39 -0800] "GET ..."
...
...
is the above 2b01:e35:7b75:b750:c835:f3ad:ed1:d3a8 an ip-address ?
and if it is how do I work out its 4 bytes representation ?
Note: for privacy reasons the reported examples have been tinkered. so they are not real ips.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这是一个 IPv6 地址。
您习惯看到的 xxx.xxx.xxx.xxx 地址是 IPv4 地址(互联网协议版本 4)。 IPv6是一个具有更大地址空间的新版本(IPv4有2^32种可能的地址,IPv6有2^128种组合)。
由于 IPv6 地址比 IPv4 更多,因此也不可能将前者转换为后者。
另外值得注意的是,尽管 IPv6 自 1996 年就已存在,但仍未得到广泛应用。 您可以在维基百科上阅读更多相关信息。预计 IPv4 和 IPv6 将同时使用在可预见的未来。
It's an IPv6 address.
The xxx.xxx.xxx.xxx addresses you're used to seeing are IPv4 addresses (version 4 of the Internet Protocol). IPv6 is a new version with a larger address space (IPv4 has 2^32 possible addresses, IPv6 has 2^128 combinations).
Since there are more IPv6 addresses than IPv4, it is also not possible to convert the former into the latter.
Also noteworthy is that, although IPv6 has existed since 1996, it is still not widely used. You can read more about it on Wikipedia. It's expected that IPv4 and IPv6 will be used alongside each other for the foreseeable future.
这是一个 IPv6 地址,有 16 个字节。 IPv4 格式中没有同等格式,其地址无论如何都会快速耗尽。
That is an IPv6 address, which is of 16 bytes. There is no equivalent in IPv4 format, whose addresses are anyway fast depleting.
这是一个 IPV6 地址。不可能有 4 字节表示。
It is an IPV6 address. There is no 4 byte representation possible.