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

Seed file in nodejs mode failed. #519

Closed
hualiwang opened this issue Dec 8, 2015 · 8 comments
Closed

Seed file in nodejs mode failed. #519

hualiwang opened this issue Dec 8, 2015 · 8 comments

Comments

@hualiwang
Copy link

@hualiwang hualiwang commented Dec 8, 2015

How to seed file in node mode?
I created seed.js like this :

function runSeed (input) {
client = new WebTorrent()
function onTorrent (torrent) {
console.log('Client is seeding:', torrent.infoHash)
console.log(torrent.magnetURI)
}
client.seed(input , onTorrent)
}
runSeed('mp3.mp3')

open terminal and it output:
Client is seeding: 38178900b09f42319e8be46c22566222fdcede55
magnet:?xt=urn:btih:38178900b09f42319e8be46c22566222fdcede55&dn=mp3.mp3&tr=udp%3
A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr
=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.webtorrent.io%3A80
&tr=wss%3A%2F%2Ftracker.webtorrent.io

after that I open an other terminal and input : webtorrent download magnet:?xt=urn:btih:38178900b09f42319e8be46c22566222fdcede55

and it only print one line:
fetching torrent metadata from 0 peers

I have not specified any trackers ,and webtorrent will always use the same trackers ,

But the code doesn't work , Am i doing wrong ?

@hualiwang hualiwang changed the title How to seed file in node mode? Seed file in nodejs mode failed. Dec 8, 2015
@DiegoRBaquero

This comment has been minimized.

Copy link
Member

@DiegoRBaquero DiegoRBaquero commented Dec 8, 2015

Could you please enable debug and comment the logs? #518 looks the same

@hualiwang

This comment has been minimized.

Copy link
Author

@hualiwang hualiwang commented Dec 9, 2015

My comment is too long ,so I attached the files:

log.zip

@DiegoRBaquero

This comment has been minimized.

Copy link
Member

@DiegoRBaquero DiegoRBaquero commented Dec 9, 2015

Are you currently seeding?

Hop on gitter and PM me, I'll help you :)

@hualiwang

This comment has been minimized.

Copy link
Author

@hualiwang hualiwang commented Dec 10, 2015

I'm not online , sleeping at night at that time.
I have opened a vps and now running webtorrent ,and it still seeding file.
magnet:?xt=urn:btih:38178900b09f42319e8be46c22566222fdcede55
I will email vps account and password to you .

the problem is:
Every things is ok , when I running the seeder and downloader at the same computer,
But can not download from computer which located behind NAT

My purpose is seeding files on server , and users can download all of world using browser ,

@DiegoRBaquero

This comment has been minimized.

Copy link
Member

@DiegoRBaquero DiegoRBaquero commented Dec 10, 2015

Checking this now, will report in a few minutes.

EDIT: Must be your NAT. The downloading worked perfectly for me at home, being behind NAT too.

@hualiwang

This comment has been minimized.

Copy link
Author

@hualiwang hualiwang commented Dec 11, 2015

I can connect to internet and still failed , I don't know why ,
did it needs NAT traversal service ?

@DiegoRBaquero

This comment has been minimized.

Copy link
Member

@DiegoRBaquero DiegoRBaquero commented Dec 11, 2015

Something must be blocking it, NAT or a firewall.

@lock

This comment has been minimized.

Copy link

@lock lock bot commented May 5, 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 5, 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
2 participants
You can’t perform that action at this time.