Live data from Hacker News

Show HN: Peer-to-peer secure file transfer using WebRTC

bitf.ly

51–60 of 65 posts

Re: Show HN: Peer-to-peer secure file transfer using WebRTC

#51
post #44
post #36

Earlier quoted context omitted.

You can do without using a server. https://github.com/cjb/serverless-webrtc

"A STUN server is still used to find out your external IP for NAT-busting." essentially, now the STUN is the MITM. STUN server lies to both parties about what their IP addresses are and responds with IPs that it controls. Both parties connect to those IPs and the messages are relayed between them.

This is incorrect. Once data starts to flow, DTLS is used to encrypt the connection and verify each peer's identity. If the STUN server attempts to MITM, it will be detected.

Re: Show HN: Peer-to-peer secure file transfer using WebRTC

#52
post #51
post #44

Earlier quoted context omitted.

"A STUN server is still used to find out your external IP for NAT-busting." essentially, now the STUN is the MITM. STUN server lies to both parties about what their IP addresses are and responds with IPs that it controls. Both parties connect to those IPs and the messages are relayed between them.

This is incorrect. Once data starts to flow, DTLS is used to encrypt the connection and verify each peer's identity. If the STUN server attempts to MITM, it will be detected.

Maybe I'm reading your comment wrong (if so, sorry!), but that sounds like a race condition to me.

Re: Show HN: Peer-to-peer secure file transfer using WebRTC

#53
post #31
post #3

Similar project: FilePizza – https://file.pizza/ github: https://github.com/kern/filepizza show hn: https://news.ycombinator.com/item?id=9535332

http://xkcd949.com/

Reminds me that i ran into a blog after the referenced comic was publish, that mused about how the trouble of easily sending files between PC online was a conspiracy between the ISPs and the *AAs.

Re: Show HN: Peer-to-peer secure file transfer using WebRTC

#55

I also made a similar project to this using WebRTC: https://www.mkstream.club/#/ Github: https://github.com/make-sity/mkstream

Might be just me, but "look I made something similar here is the link" without any more info or mention of how it's relevant sounds a lot like piggybacking off of the success of this thread to promote your own project.

Re: Show HN: Peer-to-peer secure file transfer using WebRTC

#56
post #55

I also made a similar project to this using WebRTC: https://www.mkstream.club/#/ Github: https://github.com/make-sity/mkstream

Might be just me, but "look I made something similar here is the link" without any more info or mention of how it's relevant sounds a lot like piggybacking off of the success of this thread to promote your own project.

I'm sorry. that wasn't my intent. I just thought that I'd link it for anyone who wants to see another example of a filesharing app made with WebRTC.

Re: Show HN: Peer-to-peer secure file transfer using WebRTC

#57
post #39

Earlier quoted context omitted.

cat $FILE | nc -l -p 80

firewalls?

The limitation of this method is that you do need your own port exposed to the internet. The advantage of this method is that you don't have to trust a third party.

For the explicit example above, your guest's firewall would have to be pretty brutal to not allow port 80 through.

Re: Show HN: Peer-to-peer secure file transfer using WebRTC

#58
post #3

Similar project: FilePizza – https://file.pizza/ github: https://github.com/kern/filepizza show hn: https://news.ycombinator.com/item?id=9535332

Does anyone know how FilePizza and Bitfly compares to WebTorrent?

WebTorrent actually implements the bittorrent protocol, and can be used as a nodejs bittorent client. It extends the bittorent protocol to do p2p sharing inside the browser (but you only can connect to other people using the webtorrent nodejs app or in-browser app, and not all the bittorent network)

FilePizza and Bitfly are much simpler implementations, doing 1-to-1 file transfers in the browser using the basic WebRTC Datachannel API.

Looks like FilePizza is now using WebTorrent too now, as it's mentionned in their FAQ:

"Where are my files sent? Your files never touch our server. Instead, they are sent directly from the uploader's browser to the downloader's browser using WebTorrent and WebRTC. This requires that the uploader leave their browser window open until the transfer is complete."

https://github.com/kern/filepizza

Re: Show HN: Peer-to-peer secure file transfer using WebRTC

#59
post #57

Earlier quoted context omitted.

firewalls?

The limitation of this method is that you do need your own port exposed to the internet. The advantage of this method is that you don't have to trust a third party. For the explicit example above, your guest's firewall would have to be pretty brutal to not allow port 80 through.

Yeah it was mostly the senders firewall (or the NAT you find on most consumer routers) that i had in mind.

The OS may also balk at opening such a low port as a user, now that i think about it.

Re: Show HN: Peer-to-peer secure file transfer using WebRTC

#60
post #27

I was wondering if it is possible to transfer streaming video data over WebRTC already, for example to implement a video chat service, without wasting too much CPU power and/or bandwidth?

Icecomm lets you use Webrtc to do this pretty easily (icecomm.io)

Interesting. Are they doing image processing / compression in javascript?
Post reply on HN