Giter VIP home page Giter VIP logo

Comments (6)

feross avatar feross commented on May 14, 2024 1

So, there's a bit of a misunderstanding of the commands here. webtorrent create /my/path will create a torrent file for the contents of /my/path. That part is correct.

But when you use webtorrent seed /my/path2, you're actually creating a torrent for /my/path2 and seeding the files there. So you don't want to run webtorrent seed somefile.torrent as then you'll be seeding the torrent file itself.

Your webtorrent seed ~/Downloads/test_dataset command is the right one to use.

But you have another problem, which is that you used --private when you created the initial torrent file, but not when you were seeding, so you ended up creating a different torrent file. You need to use consistent flags. I recommend not using --private as that just prevents the use of the DHT to find peers, which is not what you want.

Hope this helps!

from webtorrent-cli.

rom1504 avatar rom1504 commented on May 14, 2024

from webtorrent-cli.

ahundt avatar ahundt commented on May 14, 2024

@rom1504 no I'm not sure it does what I want. There weren't many notes that I could find explaining what it does and googling various combinations of "private torrent file" weren't what I was looking for.

from webtorrent-cli.

rom1504 avatar rom1504 commented on May 14, 2024

from webtorrent-cli.

ahundt avatar ahundt commented on May 14, 2024

not seed publicly yet, only to those whom I gave the torrent. I guess it might mean only use private trackers or something?

Would that flag have caused the behavior I saw?

from webtorrent-cli.

VictorV96 avatar VictorV96 commented on May 14, 2024

Hello. This instruction does not work for me as for the author, even without --private in the latest version.

And also the code below does not work ... instant.io does not see the link.

const WebTorrent = require('webtorrent-hybrid')

const client = new WebTorrent()
const filePath = __filename

console.log('filePath:', filePath)

client.seed(filePath, torrent => {
console.log('torrentId (info hash):', torrent.infoHash)
// console.log('torrentId (magnet link):', torrent.magnetURI)
})

from webtorrent-cli.

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.