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

Questions about Torrent/Peer Discovery #13

Closed
ArtskydJ opened this issue Dec 2, 2014 · 2 comments
Closed

Questions about Torrent/Peer Discovery #13

ArtskydJ opened this issue Dec 2, 2014 · 2 comments
Labels

Comments

@ArtskydJ
Copy link

ArtskydJ commented Dec 2, 2014

I have a few questions on how peer discovery works in instant.io and webtorrent:

  • If DHT working in webtorrent, why did you use a tracker server instead? (index.js, line 43.)
  • If DHT is enabled on a torrent, can it be found by just its infoHash?
  • Is it ok to use wss://tracker.webtorrent.io for applications using webtorrent?
    • If not, do you have any tips on creating a tracker server?

Thanks in advance!

@feross
Copy link
Member

feross commented Dec 2, 2014

Is DHT working in webtorrent?

  • If you use WebTorrent in in node.js (on command line, or as a module), the DHT will be used. In the browser, the DHT has not been implemented yet (see WebRTC DHT support webtorrent#2). For now, a tracker server must be used in the browser.

If DHT is enabled on a torrent, can it be found by just its infoHash?

  • Yes, if even one torrent client that supports DHT is seeding a torrent, then you should be able to download the torrent with only an info-hash. You can find peers via the DHT, then get the torrent metadata (.torrent file) and the actual file from the peers.

Is it ok to use wss://tracker.webtorrent.io for applications using webtorrent?

  • It's totally fine to use wss://tracker.webtorrent.io for webtorrent applications. In fact, the create-torrent module adds wss://tracker.webtorrent.io to all .torrent files it creates by default. I'm going to scale the tracker server as the need arises, but I obviously can't guarantee 100% uptime (although I will try).

Do you have any tips on creating a tracker server?

@feross feross added the question label Dec 2, 2014
@ArtskydJ
Copy link
Author

ArtskydJ commented Dec 2, 2014

😃👍 Thanks!

@feross feross closed this as completed Dec 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants