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

Recover the torrent file from desktop clients (like Qbittorrent) #1154

Closed
deckbsd opened this issue Jul 9, 2017 · 1 comment
Closed

Recover the torrent file from desktop clients (like Qbittorrent) #1154

deckbsd opened this issue Jul 9, 2017 · 1 comment

Comments

@deckbsd
Copy link

@deckbsd deckbsd commented Jul 9, 2017

What version of WebTorrent?
0.98.18

What operating system and Node.js version?
windows 10 and node v8.1.3

What did you expect to happen?
With this little test code, i'm seeding a torrent file :

comm.EventEmitter.on('isTorrentExist', (exist) => {
    util.log(exist)
    if(exist === true){
        util.log("Use previous one")
        addTorrent("../poc-distribution/src/data/test.torrent")
    }
    else {
        util.log("Create a new torrent file")
        createTorrent("../poc-distribution/src/data/test.txt")
    }
})

var getClient = () => {
    var client = WebTorrent()

    window.client = client
    client.on('warning', util.warning)
    client.on('error', util.error)
}

var createTorrent = (path) => {
    window.client.seed(path, function (torrent) {
    util.log('Client is seeding ' + torrent.magnetURI)
  })
}

var addTorrent = (path) => {
    window.client.add(path, function (torrent) {
    util.log('Client is seeding ' + torrent.magnetURI)
  })
}

var createOrSeedTorrent = _ => {
    comm.isTorrentExist("../poc-distribution/src/data/test.torrent")
}

init()

function init(){
    if (!WebTorrent.WEBRTC_SUPPORT) {
        util.error('This browser is unsupported. Please use a browser with WebRTC support.')
    }

    getClient()
    createOrSeedTorrent()
}

What actually happened?
The file is corretly shared via webtorrent, i try to recover it from instant.io without any problems. The problem is, when a try to recover it from Qbitorrent for example. The client says that trackers are alive and ready, but, there is no download. I already tried with "webtorrent-hybrid", it doesn't change anything.

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Apr 25, 2018

WebTorrent doesn't support NAT traversal (UPnP or NAT-PMP) at this time, so the connections between WebTorrent and QBitTorrent are probably being blocked by the NAT.

@feross feross closed this Apr 25, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jul 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.