Comments (4)
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.
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.
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.
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)
- Health Check HOT 2
- npm package.json formatting HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-dht.