[bittorrent] about peer_id

Olaf van der Spek olafvdspek at gmail.com
Tue Oct 4 14:03:14 EDT 2005


On 10/4/05, FYP 2005 <hkucsfyp2005 at gmail.com> wrote:
> > After I sent the http get request to the tracker, it only gives me the IP
> > and port. However, I expect that the tracker can give me the peer id. May
> be
>
> >Why do you expect that?
>   Because I read the BT Specification, it tells me that the tracker can
> respond me the peer id.

But the protocol has been improved and peer_id isn't returned anymore
when compact or no_peer_id are enabled.


> Compact = 0 because I don't want to accept a compact response from the
> tracker. I tried to use compact =1 , but it gives me some "Strange" words.
> However, if i use compact =0 , it can show me port and IP without giving me
> some "Strange" words.
>
> >Yes. Your expectations. :)
> >Don't expect to get peer_ids wrong the tracker.
>
> Sorry, I don't understand what you mean . Can you tell me more ?
>
>
> In fact, I am implementing a small programme to communicate with other
> peers...
> I just want to get the information of the peers instead of download or
> upload anything to them...
> First of all, I need to get the peer id from the tracker in order to
> communicate with them.

Why do you need the peer id to communicate with them?
As far as I know you don't need it. Just connect to them and send
info_hash and *your* peer id.

> However, I only can get the IP and port of the peers from the tracker.
> Can you give me some ideas on getting the peer id of the peers from the
> tracker ?



More information about the BitTorrent mailing list