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.
Show HN: Peer-to-peer secure file transfer using WebRTC
51–60 of 65 posts
Re: Show HN: Peer-to-peer secure file transfer using WebRTC
#52Earlier 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.
Re: Show HN: Peer-to-peer secure file transfer using WebRTC
#53Similar project: FilePizza – https://file.pizza/ github: https://github.com/kern/filepizza show hn: https://news.ycombinator.com/item?id=9535332
http://xkcd949.com/
Re: Show HN: Peer-to-peer secure file transfer using WebRTC
#54Re: Show HN: Peer-to-peer secure file transfer using WebRTC
#55I also made a similar project to this using WebRTC: https://www.mkstream.club/#/ Github: https://github.com/make-sity/mkstream
Re: Show HN: Peer-to-peer secure file transfer using WebRTC
#56I 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
#57Earlier quoted context omitted.
cat $FILE | nc -l -p 80
firewalls?
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
#58Similar 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?
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."
Re: Show HN: Peer-to-peer secure file transfer using WebRTC
#59Earlier 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.
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
#60I 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)