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

webtorrent seed command should show magnet link #404

Closed
browny opened this issue Aug 17, 2015 · 4 comments
Closed

webtorrent seed command should show magnet link #404

browny opened this issue Aug 17, 2015 · 4 comments

Comments

@browny
Copy link

@browny browny commented Aug 17, 2015

I install the webtorrent cli by npm install webtorrent -g

Open one terminal to run webtorrent seed /data, output as below

seeding: img
info hash: 75fa47b07d23f24a77ab7f01f5c8ff51fb38d8c9
speed: 0 B/s  downloaded: 0 B/193.59 kB  uploaded: 0 B  peers: 0/0  hotswaps: 0
time remaining: Infinity years remaining  total time: 9s  queued peers: 2  blocked: 0

And open another terminal to download that seed (webtorrent download 75fa47b07d23f24a77ab7f01f5c8ff51fb38d8c9), but nothing happen, the log just shows

fetching torrent metadata from 0 peers

Anything I am doing wrong?

@joshterrill

This comment has been minimized.

Copy link

@joshterrill joshterrill commented Aug 21, 2015

It appears that the seeding hasn't finished yet. To my knowledge, you'll need to wait until the seeding has finished before you can start downloading. Unfortunately it appears that you have a long time to wait: time remaining: Infinity years remaining Maybe I'm understanding this wrong, though?

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Aug 22, 2015

@browny Since you're seeding a new torrent and you didn't specify any trackers, some default ones are added for you automatically. When downloading from the second client, you'll want to use the full magnet link or .torrent file which contains the same list of trackers.

Just using the info hash makes it less likely that the new client will be able to find the seeder. Without trackers, the DHT is used. But if UDP tracker is filtered or blocked on your network, then no peers will be found.

Right now, there's not an easy way to copy the magnet link from the webtorrent seed command. If we add that feature, I think your example will work.

@feross feross changed the title webtorrent seed command not work webtorrent seed command should show magnet link Aug 22, 2015
@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Mar 12, 2016

This is fixed now. Just pass -q to the command.

webtorrent seed files -q

@feross feross closed this Mar 12, 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.