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

Cannot seed torrent from Desktop to Web Browser (on mobile device and using different network) #990

Closed
EdwinLuKiet opened this issue Dec 6, 2016 · 6 comments

Comments

@EdwinLuKiet
Copy link

@EdwinLuKiet EdwinLuKiet commented Dec 6, 2016

I've tried to follow the example given but cannot seed the video from Desktop to the Chrome Browser on mobile device (using different network). However, instant.io has no problem doing such. Have seen some one mentioned the issue before few days ago and now it has been put down for some reason ? My code is simple as just as such :

var torrentId = 'magnet:?xt=urn:btih:751546eb8e02ff7ea28e8679dee8d1372beb4c77&dn=Test20.mp4&tr=udp%3A%2F%2Fexodus.desync.com%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.internetwarriors.net%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com'
client.add(torrentId, onTorrent);
function onTorrent (torrent) {
    torrent.files.forEach(function (file) {
        file.appendTo('.log');
    })
}
@EdwinLuKiet EdwinLuKiet changed the title Cannot seed torrent on Web Cannot seed torrent from Desktop to Web Browser (on mobile device and using different network) Dec 6, 2016
@DiegoRBaquero

This comment has been minimized.

Copy link
Member

@DiegoRBaquero DiegoRBaquero commented Dec 7, 2016

If it works on instant.io maybe it's the STUN+TURN config.

@EdwinLuKiet

This comment has been minimized.

Copy link
Author

@EdwinLuKiet EdwinLuKiet commented Dec 7, 2016

Yes can it be solved effectively? Instant.io sends its own rtcconfig but it looks quite troublesome.

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Dec 9, 2016

If your network has a firewall or you're behind a restrictive NAT then some P2P connections will fail. Setting up a TURN server, or paying a service like Twilio (https://www.twilio.com/stun-turn) is the only way to ensure connectivity in these situations.

For torrents with a lot of peers, even peers who are behind bad firewalls can usually connect to at least a few peers. But if you want to guarantee that one specific peer can always connect to any other specific peer, then you need TURN.

@feross feross closed this Dec 9, 2016
@EdwinLuKiet

This comment has been minimized.

Copy link
Author

@EdwinLuKiet EdwinLuKiet commented Dec 9, 2016

thanks for the useful information. However, its noted that normal utorrent has no such issue? Is there any any chance that we can bypass such issue, that would be very good way to look forward to?

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Jan 29, 2017

uTorrent uses different techniques than WebRTC to bypass firewalls, namely UPnP and NAT-PMP. With WebRTC we're limited to STUN and TURN. This is what browsers give us.

@lock

This comment has been minimized.

Copy link

@lock lock bot commented May 4, 2018

This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue.

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 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
3 participants
You can’t perform that action at this time.