Bittorrent DHT Tracker v0.2

Discuss any general topics regarding Shareaza.
Forum rules
Home | Wiki | Rules

Bittorrent DHT Tracker v0.2

Postby ivan386 » 20 Apr 2010 16:56

Git: https://github.com/ivan386/lua-dht (Fork me!)

Lua DHT_19_01_2011.zip
(622.25 KiB) Downloaded 682 times

Lua DHT 29 10 2010 (untested).zip
(427.48 KiB) Downloaded 387 times

Lua DHT 13 10 2010 .zip
(652.36 KiB) Downloaded 394 times



This local tracker emulator.


It use port 6543 for udp/tcp connections. (settigns.lua)

To use for some torrent need add tracker addres "http://127.0.0.1:6543/announce"

To use for single file use "magnet_to_uri_res.cmd" to get url for it.

http://127.0.0.1:6543/map - svg map of nodes
http://127.0.0.1:6543/info - info_hash list
http://127.0.0.1:6543/ - main page

Shareaza settings:
Connection.IgnoreOwnIP = false


Single file search test url: OnlinePlayer.zip (Give this url to Shareaza. Script must be allready run.)

install.cmd - install LuaDHT service and run it
uninstall.cmd - uninstall LuaDHT service

If last edited time is after your last download or "Not downloaded yet" than it new version.
Lua DHT_19_01_2011.zip
(622.25 KiB) Downloaded 682 times

Lua DHT 29 10 2010 (untested).zip
(427.48 KiB) Downloaded 387 times

Lua DHT 13 10 2010 .zip
(652.36 KiB) Downloaded 394 times
Last edited by ivan386 on 21 Sep 2011 10:26, edited 33 times in total.
ivan386
 
Posts: 261
Joined: 17 Jun 2009 14:08

Re: Bittorrent DHT Tracker

Postby ivan386 » 21 Apr 2010 07:18

Ping responce fixed
ivan386
 
Posts: 261
Joined: 17 Jun 2009 14:08

Re: Bittorrent DHT Tracker

Postby old_death » 21 Apr 2010 09:38

So it searches client IPs within the DHT but looks from outside as if it were a tracker?
User avatar
old_death
 
Posts: 1950
Joined: 13 Jun 2009 16:19

Re: Bittorrent DHT Tracker

Postby old_death » 21 Apr 2010 11:47

BTW, would it be possible to use this to give Shareaza BT DHT support until a permanent solution has been coded? This (pseudo ;) ) tracker could be installed together with Shareaza and be queried if there are either no or not enough (torrent) sources for a BT download...
This shouldn't be too difficult to implement as a temporary solution, should it?
User avatar
old_death
 
Posts: 1950
Joined: 13 Jun 2009 16:19

Re: Bittorrent DHT Tracker

Postby ivan386 » 21 Apr 2010 14:10

This is for Shareaza (not only) BT DHT support until a permanent solution has been coded.
ivan386
 
Posts: 261
Joined: 17 Jun 2009 14:08

Re: Bittorrent DHT Tracker

Postby ivan386 » 21 Apr 2010 14:13

ivan386
 
Posts: 261
Joined: 17 Jun 2009 14:08

Re: Bittorrent DHT Tracker

Postby ivan386 » 22 Apr 2010 21:15

Other system to find k closest node.
ivan386
 
Posts: 261
Joined: 17 Jun 2009 14:08

Re: Bittorrent DHT Tracker

Postby old_death » 23 Apr 2010 00:06

Hmmm... after having started it, how can I see whether it is connected to the BT DHT? And how can I establish connection if it doesn't connect?
User avatar
old_death
 
Posts: 1950
Joined: 13 Jun 2009 16:19

Re: Bittorrent DHT Tracker

Postby ivan386 » 23 Apr 2010 10:17

ivan386
 
Posts: 261
Joined: 17 Jun 2009 14:08

Re: Bittorrent DHT Tracker

Postby old_death » 23 Apr 2010 13:16

User avatar
old_death
 
Posts: 1950
Joined: 13 Jun 2009 16:19

Re: Bittorrent DHT Tracker

Postby ivan386 » 23 Apr 2010 13:39

ivan386
 
Posts: 261
Joined: 17 Jun 2009 14:08

Re: Bittorrent DHT Tracker

Postby old_death » 23 Apr 2010 17:24

User avatar
old_death
 
Posts: 1950
Joined: 13 Jun 2009 16:19

Re: Bittorrent DHT Tracker

Postby brov » 23 Apr 2010 17:58

I ran it on win7 w/o admin privs and it seems to connect to the dht... (I'm firewalled right now)
brov
 
Posts: 87
Joined: 05 Jul 2009 12:15

Re: Bittorrent DHT Tracker

Postby ivan386 » 23 Apr 2010 18:19

2old_death: Copy console msgs here pls.
Last edited by ivan386 on 23 Apr 2010 19:17, edited 1 time in total.
ivan386
 
Posts: 261
Joined: 17 Jun 2009 14:08

Re: Bittorrent DHT Tracker

Postby brov » 23 Apr 2010 18:25

brov
 
Posts: 87
Joined: 05 Jul 2009 12:15

Re: Bittorrent DHT Tracker

Postby ailurophobe » 24 Apr 2010 18:09

It is 'response', I think. Anyway, I think this is a sweet idea and might actually be better than integrating DHT directly to the main executable, not just for Bittorrent DHT but Kad as well. I think ryo made it so that plugins can run as separate processes and that would be pretty much ideal IMHO for the DHT stuff. Just make the plugins work like a virtual BT tracker or a virtual ED2K server and have Shareaza mirror the stuff they send to actual trackers or servers to it if enabled. And yes, I know it wouldn't actually be easy, but it would be doable and probably less mess than directly integrating DHT would be.
ailurophobe
 
Posts: 709
Joined: 11 Nov 2009 05:25

Re: Bittorrent DHT Tracker

Postby old_death » 24 Apr 2010 22:23

User avatar
old_death
 
Posts: 1950
Joined: 13 Jun 2009 16:19

Re: Bittorrent DHT Tracker

Postby ivan386 » 24 Apr 2010 22:58

Added:
1 forget peer if no announce 15min
2 /info : list of announced torrents
3 /map : svg map of nodes
Fixed: crush on uncorrect number in packet
ivan386
 
Posts: 261
Joined: 17 Jun 2009 14:08

Re: Bittorrent DHT Tracker v0.2

Postby ivan386 » 27 Apr 2010 20:24

New version 0.2

Full BT DHT support + Single file search/announce for Gnutella2

Lets get start test of script!
ivan386
 
Posts: 261
Joined: 17 Jun 2009 14:08

Re: Bittorrent DHT Tracker v0.2

Postby ivan386 » 28 Apr 2010 14:25

For single file sharing now Lua DHT have "Bisy" client emulator.
For ed2k it may be same. Ed2k clients exchanges sources?
ivan386
 
Posts: 261
Joined: 17 Jun 2009 14:08

Re: Bittorrent DHT Tracker v0.2

Postby ivan386 » 03 May 2010 12:56

Fix: announce_peer
Fixed: infinity packet parsing
Added: Windows service support
Added: local address filtration
Changet: map image
ivan386
 
Posts: 261
Joined: 17 Jun 2009 14:08

Re: Bittorrent DHT Tracker v0.2

Postby ivan386 » 04 Oct 2010 23:19

New game :) "Torrent hunt"

1 install Tracker
2 Wait some time
3 Then open http://localhost:6543/info
4 Click by top hash (or other if you whish)
5 Wait until Shareaza get torrent info (hash of torrent will be changed by it name)
6 Right click by download and choose properties
7 Check what files in torrent
8 Cancel download if it dont need
9 Check that torrent file is in torrent folder in library

And now you can start download this torrent in any time by dbl click on it.
Share your torrent folder to get access for others.
ivan386
 
Posts: 261
Joined: 17 Jun 2009 14:08

Re: Bittorrent DHT Tracker v0.2

Postby ailurophobe » 12 Feb 2012 03:41

This probably does not need to be a sticky since the debug versions now have Bittorrent DHT...
ailurophobe
 
Posts: 709
Joined: 11 Nov 2009 05:25

Re: Bittorrent DHT Tracker v0.2

Postby raspopov » 12 Feb 2012 07:26

User avatar
raspopov
Project Admin
 
Posts: 945
Joined: 13 Jun 2009 12:30


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest