@ -2,7 +2,7 @@ The [WebTorrent](https://webtorrent.io) project provides a way for websites to
share the bandwidth load with the users viewing content. It works on almost any
share the bandwidth load with the users viewing content. It works on almost any
content, but the first thing I I implemented is for Video.
content, but the first thing I I implemented is for Video.
This will most likely *only* work if you have your server on `localhost:5001` since the torrent file is configured for that. Also, the default `npm run dev` will run the simple tracker implementation found in `services/tracker.js`. If you want to generate the torrents again then run:
This will most likely *only* work if you have your server on `127.0.0.1` since the torrent file is configured for that. Also, the default `npm run dev` will run the simple tracker implementation found in `services/tracker.js`. If you want to generate the torrents again then run:
```
```
sh scripts/mktorrents.sh sample.mp4
sh scripts/mktorrents.sh sample.mp4
@ -14,7 +14,7 @@ It uses the [mktorrents](https://github.com/pobrn/mktorrent) to generate the tor
needed if you want to add extra protections to people accessing your content
needed if you want to add extra protections to people accessing your content
only after they log in.
only after they log in.
* `-l 15` -- Sets the piece length to 15.
* `-l 15` -- Sets the piece length to 15.
* `-w localhost:5001` -- Sets an initial web URL to use as a source. You
* `-w 127.0.0.1` -- Sets an initial web URL to use as a source. You
should remove this if you want them to only go through the tracker and other
should remove this if you want them to only go through the tracker and other