Sign in to follow this  

Got Stunk At Peer Wire Protocol!

Recommended Posts

Hello all,


I want to create a simple BitTorrent client so i started at reading the specification and i understood it :)


I implemented the tracker protocol and it works fine, but got stunk at peer wire protocol.

After the tracker responds to me with the list of clients i send them the handshake but they don't respond to me !!!!!


i've used wireshark to see how other clients how they do the job, but isn't different from mine, so i tried to take the handshake which Vuze uses it and writing in it in file using Hex editor then sending it to the client using netcat, but the same result i don't get any response from the peer and the connection closes immediately !!!!


this is my handshake which i send to the peer, i already know that the peer has the file:

13 42 69 74 54 6F 72 72 65 6E 74 20 70 72 6F 74 6F 63 6F 6C 00 00 00 00 00 00 00 00 52 21 82 7B 81 C2 5F A5 9D BA 6A D6 42 86 08 9E 60 E1 0C F4 2D 41 5A 34 33 30 36 2D 44 69 68 58 53 4F 32 6E 6C 35 71 32

Can anyone tells me where is the problem?? :)


Thank you :)

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this