Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating a P2P / Decentralized file sharing network [closed]

I was wondering where I could learn more about decentralized sharing and P2P networks. Ideally, I'd like to create something to help students share files with one another over their universities network, so they could share without fear of outside entities.

I'm not trying to build the next Napster here, just wondering if this idea is feasible. Are there any open source P2P networks out there that could be tweaked to do what I want?

like image 781
Parker Avatar asked Aug 23 '10 22:08

Parker


2 Answers

Basically you need a server (well, you don't NEED a server, but it would make it much simplier) that would store user IPs between other things like file hash lists, etc.
That server can be in any enviroinment you want (which is very comfortable).

Then, each client connects to the server (it should have a dns, it can be a free one, I've used no-ip.com once) and sends basic information first (such as its IP, and a file hash list), then sends something every now and then (say each 5 minutes or less) to report that it's still reachable.

When a client searchs files/users, it just asks the server.

This is a centralized network, but the file sharing would be done in p2p client-to-client connections.
The reason to do it like this is that you can't know an IP to connect to without some reference.

Just to clear this server thing up:
- Torrents use trackers.
- eMule's ED2K uses lugdunum servers.
- eMule's "true p2p" Kademlia uses known nodes (clients) (most of the time taken from servers like this).

like image 92
Camilo Martin Avatar answered Sep 22 '22 05:09

Camilo Martin


Tribler is what you are looking for!

It's a fully decentralized BitTorrent Client from the Delft University of Technology. It's Open Source and written in Python, so also a great starting point to learn.

like image 31
2304jrernfol Avatar answered Sep 20 '22 05:09

2304jrernfol