Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    Regular Coder
    Join Date
    Jan 2008
    Posts
    130
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How does p2p network works (how client find other client in the network)

    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 ?

  • #2
    Regular Coder ralph l mayo's Avatar
    Join Date
    Nov 2005
    Posts
    951
    Thanks
    1
    Thanked 31 Times in 29 Posts
    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.

  • #3
    Regular Coder
    Join Date
    Jan 2008
    Posts
    130
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i didnt understand how the soulseek works , can you give more info
    thanks allot for the help

  • #4
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    BitTorrent does have a server that tells other users what other users on are on, that is what the tracker is.
    OracleGuy

  • #5
    Regular Coder
    Join Date
    Jan 2008
    Posts
    130
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 ?

  • #6
    Regular Coder borntoslow's Avatar
    Join Date
    Aug 2008
    Location
    192.168.0.2
    Posts
    137
    Thanks
    2
    Thanked 9 Times in 9 Posts
    Differnet p2p networks work in deifferent ways. Is there any particular technology you are interested in? Designing your own?

  • #7
    Regular Coder
    Join Date
    Jan 2008
    Posts
    130
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 ?
    thanks

  • #8
    Regular Coder borntoslow's Avatar
    Join Date
    Aug 2008
    Location
    192.168.0.2
    Posts
    137
    Thanks
    2
    Thanked 9 Times in 9 Posts
    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 192.168.0.1 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

  • #9
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Quote Originally Posted by umen242 View Post
    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.
    OracleGuy


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •