View Full Version : How does p2p network works (how client find other client in the network)

08-10-2008, 05:53 AM
hello all
im total beginner on networking programming i was reading some general articles about
p2p networks and i like to understand how does networks like bittorent or soulseek and such
dont have some kind of server that registers all the clients ip and info so every client that
starts can find the others , how can one client find others whiteout middle clients server ?

ralph l mayo
08-10-2008, 10:29 AM
The server for the protocols you name *does* know which clients to contact for piece of a file. This is not something that is automatically discoverable without an intermediary server. Look at http://en.wikipedia.org/wiki/BitTorrent_(protocol) for an explanation. Soulseek is even simpler because (afaik) it doesn't aggregate peers with the same file but rather just connects one peer to one other peer.

08-10-2008, 11:08 AM
i didnt understand how the soulseek works , can you give more info
thanks allot for the help

08-10-2008, 07:57 PM
BitTorrent does have a server that tells other users what other users on are on, that is what the tracker is.

08-11-2008, 07:29 AM
so the tracker is real server that sits somewhere?
just from curiosity can the client be also be server ?
can there be some kind of p2p protocol that does not use servers ?

08-11-2008, 08:25 AM
Differnet p2p networks work in deifferent ways. Is there any particular technology you are interested in? Designing your own?

08-11-2008, 09:13 AM
well im very interested in technology that not involving ip registrar / redirector ( or what ever it called )
this is for my own game im working on that i like it to be multiplayer
is there example for such ways ?

08-11-2008, 10:43 AM
The basics of P2P are quite simple..
Two computers on the fringe of a network connect to each other and share information, notmally pirated music :)

There are many way of connecting, from what i understand you want to maintain annonimity but this is very difficult. For connections to be made the computers need to communicate hence need to know IPs to maintain the internets TCP/IP framework (what p2p is based on). This allows a kind of who is available to connect to as suppose to connect to all the time (just used rotuer for example) so there is no one centrealised server. This allows a non realtime known location of the file, ***if that makes sense*** hence the large amounts of dead pathways you may have come across while downloading something.

To develop this further how is your C+ knowledge for a VNS?

There is a lot more to it if you want more info on any particular part? Hope this helped your understanding a little.

As for the computer game side i am affraid thats Client-Host.

This is the very basics of what you are talking about. To aplly anything close to this to a multiplayer game you would need a massive knowledge

08-11-2008, 04:00 PM
so the tracker is real server that sits somewhere?
just from curiosity can the client be also be server ?
can there be some kind of p2p protocol that does not use servers ?
Yeah, there isn't one centralized one for the whole BT network, you can just make one, some BT clients support being a tracker.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum