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 upSeed file in nodejs mode failed. #519
Comments
This comment has been minimized.
This comment has been minimized.
|
Could you please enable debug and comment the logs? #518 looks the same |
This comment has been minimized.
This comment has been minimized.
|
My comment is too long ,so I attached the files: |
This comment has been minimized.
This comment has been minimized.
|
Are you currently seeding? Hop on gitter and PM me, I'll help you :) |
This comment has been minimized.
This comment has been minimized.
|
I'm not online , sleeping at night at that time. the problem is: My purpose is seeding files on server , and users can download all of world using browser , |
This comment has been minimized.
This comment has been minimized.
|
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. |
This comment has been minimized.
This comment has been minimized.
|
I can connect to internet and still failed , I don't know why , |
This comment has been minimized.
This comment has been minimized.
|
Something must be blocking it, NAT or a firewall. |
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. |
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 ?