Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bootstrap-dht-yourself

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootstrap-dht-yourself

bootstrap dht without root nodes

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

bootstrap DHT yourself - DHTY

Let you bootstrap DHT connection without root nodes.

var BOOTSTRAP_NODES = [
  'router.bittorrent.com:6881',
  'router.utorrent.com:6881',
  'dht.transmissionbt.com:6881'
]

Dirtily, it scans network randomly until it s able to find peers connected to the bittorrent DHT.

It scans for most commonly used port numbers according to https://dsn.tm.kit.edu/english/2936.php.

It may be longer than usual bootstrap nodes. But nothing unbearable according to my tests, few minutes at worst to find peers.

API

It surrounds DHT constructor to instantiate and consume a DHT table to fill it. It then returns the table when it s ready.

See cli.js for runnable example.

For DHT please refer to https://github.com/feross/bittorrent-dht

Why ?

To demonstrate this is possible because nowadays bittorent is so popular.

FAQs

Package last updated on 22 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc