GithubHelp home page GithubHelp logo

Question about node-dht HOT 4 CLOSED

aredridel avatar aredridel commented on July 1, 2024
Question

from node-dht.

Comments (4)

stbuehler avatar stbuehler commented on July 1, 2024

You need to find at least one node in a different way - for torrents this usually involves a traditional tracker. You ask it for other peers for a torrent, and then check whether those peers have dht support (afaik).
See http://bittorrent.org/beps/bep_0005.html#bittorrent-protocol-extension

from node-dht.

aredridel avatar aredridel commented on July 1, 2024

Hm. I'm actually working with something other than BitTorrent, so I'm trying to figure out how to stuff enough code in via the API to let a network form.

from node-dht.

stbuehler avatar stbuehler commented on July 1, 2024

You still can use BitTorrent trackers if you want, just pick a random 160-bit string (sha1sum of some identifier for your project for example), and make your peers announce it on some trackers to find each other.
Or, if you have a standard listening port, scan for peers on certain ip ranges (this only works for a large number of peers in an ipv4 network, for small networks or ipv6 this is probably just insane).

from node-dht.

aredridel avatar aredridel commented on July 1, 2024

Hrm. I'll have to delve deeper -- I'm hoping to set up one or some of my nodes with enough pre-configured information to form a swarm without external resources.

from node-dht.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.