Giter Club home page Giter Club logo

Comments (7)

feross avatar feross commented on May 22, 2024

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?

from instant.io.

jaybekster avatar jaybekster commented on May 22, 2024
  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?

from instant.io.

feross avatar feross commented on May 22, 2024
  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 :)

from instant.io.

jaybekster avatar jaybekster commented on May 22, 2024

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.

from instant.io.

feross avatar feross commented on May 22, 2024

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

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

from instant.io.

jaybekster avatar jaybekster commented on May 22, 2024

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

from instant.io.

feross avatar feross commented on May 22, 2024

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

from instant.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.