This forum has been archived. All content is frozen. Please use KDE Discuss instead.

HOWTO: Share your files with KTorrent without a tracker

Tags: None
(comma "," separated)
imported4-Ivan
Registered Member
Posts
819
Karma
0
There's a possibility to share your torrents without using a tracker using 'Add Peer' dialog. Note that the other side will have to know your IP address and port KTorrent is using.

Let's say you have a friend with who wants to download something from you but you don't want to use public tracker (or cannot). This is what you need to do:

Client who is going to seed
* Create a torrent using "New torrent" dialog (File->New):
- Select file or folder you want to share
- Check 'start seeding'
- Don't check "private torrent" since KT won't let you add peers to a private torrent.
- In tracker field enter your localhost IP (or simply enter anything - KT will only complain to malformed URL but this is of no importance since we won't use a tracker). This step is needed since KT won't let you make a torrent without at least one tracker. So, enter 127.0.0.1, or anything that comes to your mind...
- Click on create torrent, send it to your friends email, seed the torrent and you're done.

Client who is going to download.
- Open the torrent a seeding client has sent you.
- KT will probably complain about the tracker - ignore that.
- Right-click your torrent in KTorrent main window and choose 'Add peer...' from menu.
- In the following dialog enter seeding clients IP address and port and click 'Add'.
- After this step KTorrent should connect to the other side and start the download. If this doesn't happen then there's probably a connection problem with one or both clients (e.g. NAT/Firewall or something).

NOTE: Seeding client has to be able to accept incoming connections to the port KTorrent is listening to. Check your firewall before trying to do this.

This feature is available with SVN version from 05. September 2006. and later.
stoeptegel
Registered Member
Posts
1075
Karma
0

Wed Sep 06, 2006 3:34 pm
Nice candy! :)

Works good, one thing i noticed:
- loading a torrent with http://127.0.0.1/announce as url crashed KTorrent

EDIT
weird, not anymore
jdong
Registered Member
Posts
358
Karma
0

Mon Nov 06, 2006 4:20 am
Has anyone tested how well praying that DHT finds other members of these tiny swamrs works? :D
stoeptegel
Registered Member
Posts
1075
Karma
0

Mon Nov 06, 2006 5:04 am
Hehe, nope i've only uploaded twice to someone while DHT was turned on, but the data was VERY rare(probably non-existing), so it wasn't a surprise to not get any peers out of it:
- to another guy who used azureus2.5.0.0, this worked perfectly
- to my sister some days ago who used utorrent 1.6, we lost the connection every x minutes
jdong
Registered Member
Posts
358
Karma
0

Mon Nov 06, 2006 5:33 am
http://buntudot.org/people/~jdong/ktorr ... st.torrent

Hehe, let's test :D

I created this dummy "trackerless" torrent. It's a 10MB file filled with zeroes.

I'm currently using KTorrent 2.0.3 with the DHT ping patch from SVN to seed it... I have roughly 70 and increasing DHT nodes, which I picked up from being in the Kubuntu DVD swarm for 10 minutes.


If you have some time and curiousity about DHT, feel free to jump into the swarm :D
imported4-Ivan
Registered Member
Posts
819
Karma
0

Mon Nov 06, 2006 2:57 pm
Are we having fun here :)
I've just joined but can't seem to find you. You're probably not online right now. I'll try again later this evening.
jdong
Registered Member
Posts
358
Karma
0

Mon Nov 06, 2006 3:57 pm
:) I should be in the swarm.... I guess this is why trackerless torrents have DHT node info in them? :D


I'm testing with 3 different clients joining the swarm (2 KTorrents with about 100 nodes each, and a Mainline 5.0.0), and none of them are doing any good.
stoeptegel
Registered Member
Posts
1075
Karma
0

Mon Nov 06, 2006 4:54 pm
I was leecher from 11:15 UTC, and just noticed at 16:55 i am seeder now. :D
Not sure when i got connected. I'll let is running so you van play.
I have to move myself though for a bite with my sister.

Last edited by stoeptegel on Mon Nov 06, 2006 4:56 pm, edited 1 time in total.
jdong
Registered Member
Posts
358
Karma
0

Mon Nov 06, 2006 4:56 pm
Yeah, all 3 of my clients had no problem locating you!

I seem to have a few other PotentialPeers too but authenticating to them always fails.
Moshroum
Registered Member
Posts
63
Karma
0

Mon Nov 06, 2006 5:00 pm
Added it now and started downloading some seconds later (this could to my system is really overloaded at the moment, but it was fast enough). So it seems to work between ktorrent relativ good.

PS: I am using current svn version (like the other seeders I saw).
stoeptegel
Registered Member
Posts
1075
Karma
0

Mon Nov 06, 2006 5:30 pm
Just for the stats, i changed box(and port) 2 minutes ago and got leecher again. I have 79 instead of 151 nodes now.
EDIT
And already connected, this is nice :)
jdong
Registered Member
Posts
358
Karma
0

Mon Nov 06, 2006 5:33 pm
I must say, I'm quite surprised at how well this works :D
imported4-Ivan
Registered Member
Posts
819
Karma
0

Mon Nov 06, 2006 9:41 pm
It works awesome. I had 0 nodes and as soon as I got 1 (one, single!) node I got 2 guys on dummy torrent (USA and Germany) and my nodes count increased to 70 instantly :D
Awesome...
remram44
Registered Member
Posts
5
Karma
0

Tue Jul 01, 2008 11:00 pm
Hello there,
I am trying to use a trackerless torrent to share data between several computers without the need for me to send it to each of them entirely.
So I create the .torrent file and check "Decentralized (DHT only)" and add my own IP and port to the nodes list.
When I load the .torrent file on another computer (in fact, another ktorrent running on the same), it doesn't connect until I use "right click -> add peers" and type in the same IP.

Did I misunderstand something ? Please help me out...
George
Moderator
Posts
5421
Karma
1

Wed Jul 02, 2008 4:39 pm
Is DHT enabled on both clients ?


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]