Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   General Gnutella Development Discussion (https://www.gnutellaforums.com/general-gnutella-development-discussion/)
-   -   A simple Gnutella tracker + fileserver (in Python) (https://www.gnutellaforums.com/general-gnutella-development-discussion/93955-simple-gnutella-tracker-fileserver-python.html)

arne_bab October 28th, 2009 11:54 PM

A simple Gnutella tracker + fileserver (in Python)
 
Hi,

For a long time I wanted to create a Gnutella tracker which serves as centralized alt-loc resource, but I only now have the coding skills to do so
:)

-> ArneBab / gnutella_tracker / overview - bitbucket.org

"A simple file-tracker for Gnutella You can put files into the 'files' folder which then are made available via magnet links with alternate locations. Also it implements the x-alt protocol to learn about more alternate locations."

If you just want to test how it works, the magnet on the following page should allow you to download a test picture, as long as I keep the server running (not quite sure how long that will be...):

- http://edrikor.dyndns.org:8000/

To get the source, you can either use Mercurial

Code:

hg clone https://bitbucket.org/ArneBab/gnutella_tracker/
or just get the current snapshot:
-> http://bitbucket.org/ArneBab/gnutell...er/get/tip.zip

Just start it with

Code:

python gnutella_tracker.py
You can then access the server at http://127.0.0.1:8000
Please tell me if/how well it works for you!

Best wishes,
Arne

PS: The reason for creating this centralized fileserver is to have a first source of data, similar to what BitTorrent trackers provide. Also Communities can form around fileservers (it's easy to disable the serving of files and replace it with just storing the metadata).

PPS: This tracker is currently only tested with Phex. I don't yet know if/how well it works with other programs. If the magnet-download works, please tell me!

OldDeath November 1st, 2009 03:08 PM

Cool, have you checked Freebase by chance? This should be very similar (and also working for gnutella clients, BTW). It also offers the possibility to show a little picture in forum posts containing magnet links showing a counter of the file downloads etc.

mfg,
Old

arne_bab November 2nd, 2009 03:17 AM

Quote:

Originally Posted by OldDeath (Post 350129)
Cool, have you checked Freebase by chance?

Jupp, I know (and like) freebase, but I wanted to create a hybrid filehosting and Gnutella-connecting server - and I wanted to write it in Python ;)

I'm not yet sure, though, if the alt-loc exchange works as it should (needs testing). What works nicely is updating the magnet link with up to 16 xs-sources of downloaders, so you always have first sources.

OldDeath November 2nd, 2009 07:56 AM

You might want to create a sync between both systems...? Like this, in case a Magnet link has freebase.be as "magnet tracker" included, users of your tracker can also profit from it - and vis versa.

arne_bab November 2nd, 2009 10:19 AM

Quote:

Originally Posted by OldDeath (Post 350148)
You might want to create a sync between both systems...? Like this, in case a Magnet link has freebase.be as "magnet tracker" included, users of your tracker can also profit from it - and vis versa.

That shouldn't be too hard, yes.

Do you know the freebase dev? (I didn't have contact for years)

Would it be OK for him, if I'd add freebase as default xs? It could create some load on his server...

OldDeath November 2nd, 2009 10:28 AM

Freebase is maintained by jonne. He can be normally found on the #Shareaza or the #Shareaza-dev channel on P2PChat (IRC), so it should be relatively easy to find and contact him ;)

arne_bab November 2nd, 2009 12:00 PM

I'll get in contact if I should get to work more on my small server. Since we already have freebase-enabled magnet links in Phex, implementing it isn't that hard to do - but I first want to get his OK.

hustnn September 26th, 2010 11:19 PM

I really don't know what function does the tracker server own? How do other Gnutella clients know your server

OldDeath September 27th, 2010 01:22 PM

The tracker url is included in a magnet link. Users who click on that link will get the IPs of others who clicked it, so they do know sources to download the linked to file from.

arne_bab September 28th, 2010 11:36 AM

It’s about providing first sources and static sources to plain magnet links. A kind of kickstart tracker :)


All times are GMT -7. The time now is 11:11 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.