Hacker News new | past | comments | ask | show | jobs | submit login
Magnet link generator (magnetlinkgenerator.com)
61 points by tengio on Feb 23, 2019 | hide | past | favorite | 23 comments



I suggest including a few of the largest open trackers by default. You'll have a high hit rate for semi-popular torrents, and they can be faster than waiting for a cold DHT lookup in most clients. It's a minor decrease in privacy, but the BitTorrent network isn't really eavesdropping-resistant in the first place.

I wish IPFS had finished their BitTorrent support so we could use their standard gateway paths instead. The prefix https://ipfs.io/ipfs/f017b1114 should identify a hex-encoded BitTorrent infohash, letting us use a full URL like https://ipfs.io/ipfs/f017b111464d052f755e01d1c947848ad3d2218... through any IPFS gateway, which would resolve the content using a combination of IPFS' own network and BitTorrent with its DHT, but the implementation was never completed.


Good point. Is there any place where to get an updated list of trackers?



This is great! Thanks for the recommendation.


But don't add all 54 on a magnet/torrent, two should be enough, maybe four at most.



I haven't used trackers in years. Have you noticed a "cold DHT lookup" taking a long time recently?


I don't understand why, but I believe I've observed similar. Possible hypotheses include:

DHT Sybil attack? Hash ring bloat? Bad peers distributing exclusively irrelevant content?

Wonder if this is a common observation, and if so, what kind of research might elucidate the underlying change.


In qBitTorrent you can juct click "Open URL" and paste the hash itself without any magnet URI boilerplate and it will understand.


I'll use the occassion to recommend Tixati [0]. I've gone through many BT clients, sometimes coming back to them multiple times, and Tixati is definitely my favourite. Disk usage, features, configurability, project's activity are all great. The only semi-weird thing is that while it's free and without adware or ads, it's also a closed-source one-man show.

[0] https://www.tixati.com/


> Magnet links are an alternative way to download and share bittorrent files

but magnet URIs are not torrent specific, are they?

I'm fairly sure I'd used them in some other p2p apps years ago.

AFAIR, they are just content identifiers, and could work with any content-addressable system that wanted to support them (IPFS, Gnutella or whatever).


The way BitTorrent uses magnet URLs isn't quite semantically consistent with the way other P2P networks have used them. They probably should have just picked a different scheme.


Is it possible to create a magnet link for a file you know a SHA-1/256 hash for? It's my understanding that the hash used in magnets is not the same.


No. You need to match all the metadata in the info part of the torrent file, the final hash is a hash of that info dictionary. The fields you lack are largely name and piece size, but without the original file you cannot create the hash of each correctly sized piece. If you have the constituent file (not just it's sha1) you could eventually get it by trying common piece sizes and knowing its name.

*Edit, I overlooked somethkng.


How does the torrent client find peers from magnet links if a magnet link doesn't have a tracker listed?

I've come across magnet links in the past and the torrent client would just find some peers... it was like magic.


I believe that ultimately happens via DHT bootstrapping, where your client finds peers to join the DHT via a bootstrapping server that provides nodes, then DHT lookups are used from that point forward.


my experience with magnet links is that they are unpredictably slow: sometimes it works almost instantaneously, sometimes it takes literally forever to fetch the peers and the transfer never completes. busiest torrents will of course propagate better...

I was hoping I could transfer semi-public files (say some music with a friend) without putting them on the public trackers, but my tests with different clients were not conclusive, so those really only make sense for busy, wide-distribution torrents and not one-to-a-few transfers, for which things like magic-wormhole are a better alternative.


The DHT performs poorly for unpopular hashes, cold starts and with poorly configured networking. Particularly the last point, an open udp port is required for best results.


You might consider syncthing [1] for a private file sharing solution between friends.

[1] https://syncthing.net/


Wouldn't the issue be solved if you added a tracker to it?


yes it would, but then it's not semi-private and if there's a tracker, why do you need magnet links in the first place?


You could also try OnionShare


"Copy and past"...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: