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

Can it be used in a private local area network ? #858

Closed
amarcul opened this issue Jul 11, 2016 · 3 comments
Closed

Can it be used in a private local area network ? #858

amarcul opened this issue Jul 11, 2016 · 3 comments
Labels

Comments

@amarcul
Copy link

@amarcul amarcul commented Jul 11, 2016

Can It be used in local area personal network that has no internet access , just used to share data ?

@astro

This comment has been minimized.

Copy link
Contributor

@astro astro commented Jul 12, 2016

Please have a look at Zeroconf Peer Advertising and Discovery and also Local Service Discovery. Private Torrents should also be of interest in order to avoid leaking data while connected to the Internet.

@feross feross added the question label Jul 27, 2016
@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Jul 27, 2016

Yes, you can use WebTorrent on a private network. But, you'll want to ensure that you do one of the following:

1. Run a local tracker server for finding peers

  • Run your own tracker instance with bittorrent-tracker
  • When starting up the tracker, you can decide to enable each type of tracker: UDP, HTTP, WS. I recommend enabling them all.
  • Pass in the URL of your tracker via the { announce: [ 'http://host:port', 'udp://host:port', 'ws://host:port' ] } option to client.add()

2. Rely on a local-only DHT for finding peers.

  • Run your own DHT bootstrap server instance with bittorrent-dht
  • Pass in the URL of your DHT bootstrap server via the { dht: { bootstrap: 'host:port' } } option to the WebTorrent constructor

3. Tracker + DHT

  • Do both (1) and (2) together.
@feross feross closed this Jul 27, 2016
@lock

This comment has been minimized.

Copy link

@lock lock bot commented May 4, 2018

This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue.

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.