Live data from Hacker News

WebTorrent

webtorrent.io

71–80 of 149 posts

Re: WebTorrent

#71

I want to build a social network, and use a p2p protocol for sharing large files. I know that peertube claimed to use bittorrent, but then it seemed to drop it? What's the catch? And is ipfs better or worse?

checked peertube's doc, they don't seem to drop bittorrent. in addition to it, they also use webrtc.

Re: WebTorrent

#72

TLDR: it can't connect to normal trackers without a bridge

Or if the desktop clients add WebRTC support. Sod of them have done it others are in the process of adding the support

Yes, and as feross says in a comment on this page: "WebTorrent is fully supported in nearly all the most popular torrent clients, including uTorrent."

Re: WebTorrent

#74
post #73

> WebTorrent is the first torrent client that works in the browser. YEP, THAT'S RIGHT. THE BROWSER. Not quite. Opera had built-in support for Bittorrent for quite some time: https://www.reddit.com/r/todayilearned/comments/ec79j/til_yo...

It's quite obvious that it means "running in the browser engine" rather than "has the technology implemented in a native language". But sure, you're technically correct.

Re: WebTorrent

#75
post #42
post #12

Earlier quoted context omitted.

Well spotted. In other words, WebRTC lets a site owner have their visitors distribute content directly to others without their knowledge or consent, basically making it impossible to argue that the distributor has intent to do so in the general case. That said, it was already highly questionable for legal application, since a torrent client can run on any machine connected to a home wifi, including guests and comprom…

Intent isn’t always nessesary for a conviction. Child porn comes instantly to mind.

Intent is a necessary element for that charge, at least on the US Federal level. But in any case, completely accidental possession is a defense, meaning, if you have something in your possession without even knowing that it's in your possession, that can be presented as a defense to charges. That would likely be the same when it comes to being an unwitting distributor of copyrighted material via a stealth torrent. Similarly we don't prosecute individuals whose computers are infected with viruses that propagate (and thus illegally access and trespass onto other systems) without the person's knowledge.

Re: WebTorrent

#76
post #31

I'm building a decentralized ai marketplace and guess what? This piece of software is the backbone of our off-chain file transfer protocol. It just works; however, its seeder (BitTorrent-tracker) depends on node-webrtc, and it is not an official node package for web-rtc. It has some weird issues. For example, when you seed the torrent through BitTorrent-tracker, and on the client side (chrome browser), I used chrome:…

I originally went the same route as you, and found that https://github.com/pion/webrtc is probably the best package out there for webrtc. I learned go just for it, and it paid off tenfold. Less memory, more connections, lower latency.

Re: WebTorrent

#77
post #5

Besides being an amazing technical achievement, I find this very interesting legally, as it further blurs the line between passively viewing content hosted somewhere and redistributing/actively sharing content. Have there already been cases of websites making their visitors unwitting peers, similar to e.g. JavaScript cryptocurrency mining?

I am on a 200GB capped residential LTE internet connection. Upload is included in that data cap. If this was surreptitiously deployed that would cost me money and generally be not cool.

That is a you problem. The website is not responsible for your data plan.

Re: WebTorrent

#78
post #73

> WebTorrent is the first torrent client that works in the browser. YEP, THAT'S RIGHT. THE BROWSER. Not quite. Opera had built-in support for Bittorrent for quite some time: https://www.reddit.com/r/todayilearned/comments/ec79j/til_yo...

Not sure about the Opera Bittorrent support, but WebTorrent is years old, don't be fooled by the fact it's been posted here today. I remember first trying it at least 5 years ago.

Re: WebTorrent

#79

Earlier quoted context omitted.

This isn't true. In 2017 appear.in published some numbers. They saw ~15% were not able to do P2P. https://medium.com/@fippo/what-kind-of-turn-server-is-being-... Reading your stackoverflow link my guess is that you aren't using STUN. A P2P connection can't be established without a NAT hole punch. Also if possible I would avoid the terms `Full-cone NAT` and `Symmetric NAT` they don't do a good job of describing what i…

> In 2017 appear.in published some numbers. They saw ~15% were not able to do P2P. https://medium.com/@fippo/what-kind-of-turn-server-is-being- ... Thank you for this. I guess P2P connectivity is more often possible than I thought! For the record, I have tried to form P2P connections with multiple different devices and multiple different network conditions, and although I have been able to achieve connectivity with P…

[deleted]

Re: WebTorrent

#80
post #54

Earlier quoted context omitted.

> In 2017 appear.in published some numbers. They saw ~15% were not able to do P2P. https://medium.com/@fippo/what-kind-of-turn-server-is-being- ... Thank you for this. I guess P2P connectivity is more often possible than I thought! For the record, I have tried to form P2P connections with multiple different devices and multiple different network conditions, and although I have been able to achieve connectivity with P…

Tailscale has a really excellent explanation of STUN and NAT Traversal: https://tailscale.com/blog/how-nat-traversal-works/

Also libp2p has documented how it implements NAT hole punching: https://docs.libp2p.io/concepts/nat/hole-punching/
Post reply on HN