bittorrent-dht | 🕸 Simple , robust , BitTorrent DHT implementation | Stream Processing library
kandi X-RAY | bittorrent-dht Summary
kandi X-RAY | bittorrent-dht Summary
Node.js implementation of the BitTorrent DHT protocol. BitTorrent DHT is the main peer discovery layer for BitTorrent, which allows for trackerless torrents. DHTs are awesome!. This module is used by WebTorrent.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Receive message .
bittorrent-dht Key Features
bittorrent-dht Examples and Code Snippets
Community Discussions
Trending Discussions on bittorrent-dht
QUESTION
I have the following working in node.js to do a basic DHT put
and get
. I can later retrieve the same DHT by using only the get
method and passing in the previously created infohash. What I would like to do next is look up that DHT in the browser, but I'm not having any success with browserification. Are there any libraries for the browser out there that can read DHT data by looking up an infohash?
ANSWER
Answered 2021-Jan-19 at 12:21The bittorrent DHT requires plain UDP sockets to work. Currently there are no web APIs that provide that, thus it cannot be implemented in web pages.
QUESTION
I am interested how DHT torrent indexing site works. I have working scraper of inhoHashes written using nodejs lib. At first time I tried to execute behind NAT, but it was not efficient, then I went to BSD server with public IP and things are really better. In many publications about this topic, I have learnt that best solution is to run several virtual DHT nodes to scrape infoHashes faster. I have code which initiate several DHT nodes instances runned with unique NODEID and on own port.
My nodejs code:
...ANSWER
Answered 2020-Oct-04 at 16:25If above statement is true does it mean, that my 10 node DHT instances will be considered as DoS attack and can I be penalized somehow?
That depends on the quality of implementation of the other nodes in the network. Advanced implementations will implement various sanitizing strategies to keep their routing tables free from malicious peers. One of those strategies is to only allow one routing table entry per IP address.
If that is true, how then those websites (DHT torrent indexing site) deal with this problem?
They may operate malicious nodes that try to get into more routing tables than a normal node would, but that is countered by above-mentioned sanitizing strategies, thus an unreliable (and harmful to the ecosystem) strategy. They can also operate from multiple IP addresses as mentioned in your quote.
Is there any possibility to run efficient infoHash scraper with one public IP on one server?
BEP 51 enables efficient indexing from a single host.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install bittorrent-dht
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page