webtorrent / webtorrent-hybrid

WebTorrent (with WebRTC support in Node.js)
https://webtorrent.io
MIT License
519 stars 98 forks source link

No interoperability with instant.io #121

Closed lucybythec closed 2 years ago

lucybythec commented 3 years ago

As follow-up to #120, we have tried testing the WebRTC transport of webtorrent-hybrid. For this purpose, we prepared the following:

  1. A test file:

    dd if=/dev/urandom of=testfile.bin bs=1M count=1

  2. A simple webtorrent-hybrid seeding program:

    
    const WebTorrent = require('webtorrent-hybrid')
    const client = new WebTorrent()
    
    client.seed('testfile.bin', function (torrent) {
       console.log(torrent.magnetURI)
    })
    ``

We performed the following experiments:

  1. Experiment: Run the seeding program, and then download the provided magnet link with a conventional torrent program.

    Outcome: Success, the file is successfully downloaded. Non-WebRTC functionality seems to be working.

  2. Experiment: Create a torrent in instant.io, then try downloading it on another machine using instant.io.

    Outcome: Success, instant.io is working in the tested browser. (Chromium 87.0.4280.88)

  3. Experiment: Using the same web browser as experiment 2, try using instant.io to download the magnet link generated in experiment 1.

    Outcome: Failure. The download (either by magnet link or info hash) never seems to progress past the "Downloading torrent from" message. There seems to be an interoperability issue between webtorrent-hybrid and instant.io, or a problem in the current version of webtorrent-hybrid preventing the WebRTC protocol from working.

What version of this package are you using?

4.0.3

What operating system, Node.js, and npm version?

Ubuntu 18.04.5 LTS, Node v14.13.1, yarn 1.22.10

What happened?

There is no interoperability with instant.io.

What did you expect to happen?

Torrents created with and seeded by webtorrent-hybrid should be downloadable using instant.io.

Are you willing to submit a pull request to fix this bug?

Possibly (with assistance), but the problem is not yet fully understood.

github-actions[bot] commented 2 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?