Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upNot downloading when using private tracker #1054
Closed
Comments
This comment has been minimized.
This comment has been minimized.
|
Are you using webtorrent-hybrid to seed? Because it won't work with plain webtorrent in nodejs |
This comment has been minimized.
This comment has been minimized.
|
Nice tip, with webtorrent-hybrid it worked perfectly. Thanks! |
This comment has been minimized.
This comment has been minimized.
|
This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I've started the simple private tracker with torrent-tracker:
╰─○ ./node_modules/bittorrent-tracker/bin/cmd.js HTTP tracker: http://localhost:8000/announce UDP tracker: udp://0.0.0.0:8000 UDP6 tracker: udp://localhost:8000 WebSocket tracker: ws://localhost:8000 Tracker stats: http://localhost:8000/statsAlso started another process to seed the file:
var WebTorrent = require('webtorrent'); var client = new WebTorrent(); var file = '/home/zephrax/Vuze Downloads/Test.mp4'; var options = { announce : [ 'http://localhost:8000/announce', 'udp://127.0.0.1:8000', 'ws://localhost:8000' ] }; client.seed(file, options, function(torrent) { console.log('Client is seeding:', torrent.infoHash) });And finally, I wrote a little html to be loaded by the browser, with the following code:
`` var client = new WebTorrent();
var magnetURI = 'magnet:?xt=urn:btih:11d68fffe54198b07093e3bac796d4adcf15bfd6&dn=Test.mp4&tr=ws%3A%2F%2Flocalhost%3A8000&tr=http%3A%2F%2Flocalhost%3A8000%2Fannounce&tr=udp%3A%2F%2Flocalhost%3A8000';
I can see the WebSocket comminicating, but it never starts downloading the file:


Am I doing something wrong? or this could be an issue?