Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question #3

Closed
aredridel opened this issue Sep 29, 2011 · 4 comments
Closed

Question #3

aredridel opened this issue Sep 29, 2011 · 4 comments

Comments

@aredridel
Copy link
Contributor

How might you bootstrap a network that starts with no nodes?

@stbuehler
Copy link
Owner

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

@aredridel
Copy link
Contributor Author

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.

@stbuehler
Copy link
Owner

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).

@aredridel
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants