Bittorrent:IP 地址在哪里出现?

发布于 2024-08-22 13:07:36 字数 680 浏览 5 评论 0原文

我正在阅读有关 Bittorrent 协议的内容,但在 Wiki 页面上找不到提及的内容。我可以理解跟踪器和发布者的角色,但从实际角度来看,我尝试联系跟踪器向我提供一些信息,它给了我以下信息:

7%00%00%04%82%91%F3%CA%D5%92%08%C8%7C%B0%AE%1E4%2B%E4C:0:1

现在,开头的长字符串可能是信息哈希。下一步,我这样做了:

http://tracker.sometracker.com/announce?info_hash=7%00%00%04%82%91%F3%CA%D5%92%08%C8%7C%B0%AE%1E4%2B%E4C

它给了我一个 torrent 文件。到目前为止,一切都很好。 torrent 文件包含以下内容:

d8:completei0e10:downloadedi0e10:incompletei2e8:intervali1931e12:min intervali965e5:peers12:U���ٿ��ӣǣ^@^@e

我访问了此站点:http://en.wikipedia.org/wiki/Torrent_file 但找不到任何描述(或者可能错过了)。现在,如果我是客户端并且获得了该文件,那么我在哪里可以获得包含该文件的 IP 地址列表?

I am reading about the Bittorrent protocol and couldn't find this mentioned on the Wiki page. I could understand the role of trackers and publishers but from a practical perspective, I tried contacting a tracker to give me some information and it gave me the following:

7%00%00%04%82%91%F3%CA%D5%92%08%C8%7C%B0%AE%1E4%2B%E4C:0:1

Now, the long string in the beginning is perhaps the info hash. As a next step, I did this:

http://tracker.sometracker.com/announce?info_hash=7%00%00%04%82%91%F3%CA%D5%92%08%C8%7C%B0%AE%1E4%2B%E4C

It gave me back a torrent file. So far so good. The torrent file contained this:

d8:completei0e10:downloadedi0e10:incompletei2e8:intervali1931e12:min intervali965e5:peers12:U���ٿ��ӣǣ^@^@e

I went to this site: http://en.wikipedia.org/wiki/Torrent_file but couldn't find any description (or perhaps missed it). Now, if I am the client and I get this file, where do I get the list of IP addresses that have the file?

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

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

发布评论

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

评论(1

倾`听者〃 2024-08-29 13:07:36

在跟踪器返回的编码字符串中,peers 字符串是对等地址的列表。每个地址为 6 个字节,其中 4 个字节用于 IPv4 地址,2 个字节用于对等方侦听连接的端口。

peers12:U���ٿ��֣ǣ^@^@e 包含 2 个对等点的地址(即 IPv4 和端口),因为 peers 值的长度为 12 个字节。

有关详细信息,请参阅bittorrent wiki 规范

In the bencoded string that the tracker returns, the peers string is a list of peer addresses. Each address is 6 bytes -- 4 bytes for IPv4 address and 2 bytes for the port on which the peer is listening for connections.

peers12:U���ٿ��ӣǣ^@^@e contains the addresses (i.e. IPv4 and port) for 2 peers, since the peers value is 12 bytes long.

See the bittorrent wiki spec for more info.

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