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

Seeding file from server #42

Closed
jaybekster opened this issue May 22, 2015 · 7 comments
Closed

Seeding file from server #42

jaybekster opened this issue May 22, 2015 · 7 comments

Comments

@jaybekster
Copy link

How could I seed files withoud internet inside NAT?

How could I seed files from the server after client have uploaded the file. Webtorrent-hybrid and webtorrent use the same websocket adress so i have an error

@feross
Copy link
Member

feross commented May 22, 2015

Seeding without internet is possible, but you'll need to run your own STUN server inside your NAT. It's required by WebRTC.

I'm not sure what you're asking in your second question. Can you clarify?

@jaybekster
Copy link
Author

  1. I found a config to websocket global.WEBTORRENT_ANNOUNCE = [ 'wss://tracker.webtorrent.io' ]. What is it for?
  2. In steps:
    User upload file and share hash to other user inside NAT.
    He close the seeding although the other one is starting to download.
    How can I seed the uploaded file on the server by itself when nobody of clients are seeding?

@feross
Copy link
Member

feross commented May 22, 2015

  1. That just tells WebTorrent to always use that tracker, without requiring that you pass it into every webtorrent.download or webtorrent.seed call.
  2. You need to have a way to tell your server to also download the file and keep a copy there. You could just upload it to the server with an XHR request. Then your server could be a web seed once that feature's implemented :)

@jaybekster
Copy link
Author

I upload the file to directory /upload. Cd to /upload and typed in console webtorrent seed . In browser i open and paste infoHas but nothing is happed.
I try to seed in console and download in browser, or seed in browser and download in console - in both they it doesn't work.

@jaybekster jaybekster reopened this May 23, 2015
@feross
Copy link
Member

feross commented May 25, 2015

You need to use https://github.com/feross/webtorrent-hybrid

It's almost the same command. Try webtorrent-hybrid seed . instead.

@jaybekster
Copy link
Author

ERROR: connection error to wss://tracker.webtorrent.io?24c1e44471
ERROR: If you think this is a bug in webtorrent, report it!

@feross
Copy link
Member

feross commented Jun 12, 2015

It looks like you're using an old version of webtorrent-hybrid. That's a bug that I fixed a while ago. You can check the version with webtorrent-hybrid -v. It should be 0.49.1. If it's not, update with npm install webtorrent-hybrid -g

@feross feross closed this as completed Jun 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants