TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

WebWormHole: Send files quickly using WebRTC

636 pointsby pvsukale3about 5 years ago

29 comments

Sean-Derabout 5 years ago
This is fantastic! Really nice work :)<p>The nice thing about WebRTC is this works (pretty much) everywhere! Someone could throw up Python&#x2F;Android&#x2F;iOS&#x2F;Go&#x2F;Web&#x2F;C++ Clients really easily. That is really exciting.<p>Also just a HUGE fan of NAT Traversal&#x2F;P2P in general. The less dependence we can have on others for sharing our data the better.
评论 #23024545 未加载
评论 #23024295 未加载
评论 #23025025 未加载
评论 #23028672 未加载
anderspitmanabout 5 years ago
What makes this really interesting to me is that it uses a golang implementation of WebRTC on the server side. When I was playing with multiplayer networking in the browser ~1.5yr ago, there really didn&#x27;t seem to be a lot of options for WebRTC servers. Great to see some progress here.<p>Also, it sounds like it&#x27;s using streaming rather than loading the entire file, which would give it an advantage over <a href="https:&#x2F;&#x2F;file.pizza" rel="nofollow">https:&#x2F;&#x2F;file.pizza</a>, which is what I usually recommend for p2p transfers.<p>If you like these types of tools, but don&#x27;t require p2p (or can&#x27;t use it because of NAT), I&#x27;ll also plug my own <a href="https:&#x2F;&#x2F;patchbay.pub" rel="nofollow">https:&#x2F;&#x2F;patchbay.pub</a>, which will let you do streamed transfers with nothing but curl.
评论 #23026406 未加载
评论 #23026095 未加载
apiabout 5 years ago
It&#x27;s 2020, and people are elated to discover that it is possible to transfer a file directly between two systems on the Internet.<p>True story: I was giving a guest lecture on network virtualization at UCI and demoing ZeroTier. One student came up afterwords and asked me how traffic could flow between systems without &quot;a cloud.&quot; Evidently the idea that data could just go directly from point A to point B was utterly, completely foreign to the point that they weren&#x27;t aware that the Internet could be used this way.
评论 #23024317 未加载
评论 #23024696 未加载
评论 #23025400 未加载
评论 #23026094 未加载
mirimirabout 5 years ago
WebRTC is problematic if you&#x27;re using a VPN service, with the VPN client running on the local machine. Quoting BrowserLeaks:[0]<p>&gt; IP address detection using JavaScript. Starting work on WebRTC API, the web browser communicates with the STUN server and shares information about local and public IP addresses even if you are behind NAT and use a VPN or Proxy. This tool will show if your real public IP is leaking out.<p>However, if you run the VPN client on the router, there&#x27;s no problem, because the local machine has no public IP address, just LAN and VPN interface addresses.<p>0) <a href="https:&#x2F;&#x2F;browserleaks.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;browserleaks.com&#x2F;</a>
评论 #23027030 未加载
评论 #23026957 未加载
weaksauceabout 5 years ago
i like the approach of encrypting locally, uploading to the cloud and sending the decryption key via a link.<p>that&#x27;s the way firefox send does it<p><a href="https:&#x2F;&#x2F;send.firefox.com" rel="nofollow">https:&#x2F;&#x2F;send.firefox.com</a><p>it&#x27;s open source so you could run an instance of it if you wanted to.
评论 #23026520 未加载
评论 #23025381 未加载
nerdbaggyabout 5 years ago
I love that it uses chunks and streaming to transfer the file. So many of these just try and load the entire file at once so you can’t transfer much.
评论 #23025648 未加载
_vbdgabout 5 years ago
Interesting note that this guy&#x27;s choice of PAKE, Cpace, was chosen about a week ago by the CFRG for use in IETF protocols. Cpace is new, but that&#x27;s a big vote of confidence for it.
评论 #23027470 未加载
评论 #23024117 未加载
tptacekabout 5 years ago
This is neat, but it seems like unlike with &quot;real&quot; Magic Wormhole, the server here can capture files by surreptitiously manipulating JS.
评论 #23025276 未加载
评论 #23025319 未加载
评论 #23024863 未加载
评论 #23026382 未加载
coopsmgoopsabout 5 years ago
Nice, I made one of these a few years ago <a href="http:&#x2F;&#x2F;passfiles.com" rel="nofollow">http:&#x2F;&#x2F;passfiles.com</a><p>Yours is a bit more polished than mine though. I didn&#x27;t use QR codes either just good old fashioned urls.
评论 #23024526 未加载
jjiceabout 5 years ago
I&#x27;m not as familiar with WebRTCPeerConnection as I&#x27;d like to be. Does it use the STUN server to get it&#x27;s real IP and after that we can establish a completely peer to peer connection and now the webserver has no interaction with WebRTCPeer stream?<p>If any of that is wrong, please enlighten me, I didn&#x27;t realize peer to peer connections could be as simple as this.
评论 #23024814 未加载
评论 #23024717 未加载
评论 #23026585 未加载
Naacabout 5 years ago
Neat, looks like a different backend and frontend implementation of the very similiar magic-wormhole[0]<p>Now I wonder if anyone has made a web frontend of the original.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;warner&#x2F;magic-wormhole" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;warner&#x2F;magic-wormhole</a>
评论 #23026405 未加载
crazygringoabout 5 years ago
&gt; <i>...it uses WebRTC to make the direct peer connections. This allows us to make use of WebRTC&#x27;s NAT traversal tricks, as well as the fact that it can be used in browsers.</i><p>But I&#x27;m assuming it can&#x27;t break through all NAT routers, right? A good portion of people still won&#x27;t be able to use this?<p>A service usable by everyone would require STUN and TURN servers to be set up, no?<p>Or has WebRTC made advances I&#x27;m unaware of?
评论 #23025157 未加载
评论 #23024561 未加载
评论 #23024540 未加载
pkulakabout 5 years ago
Very nice! I&#x27;m assuming this is based on the wonderful &quot;Magic Wormhole&quot;? Is it actually using that program under the hood?
评论 #23026510 未加载
rmbeardabout 5 years ago
I&#x27;m curious how this compares with the DAT project <a href="https:&#x2F;&#x2F;docs.dat.foundation&#x2F;docs&#x2F;intro" rel="nofollow">https:&#x2F;&#x2F;docs.dat.foundation&#x2F;docs&#x2F;intro</a> I&#x27;ve had issues using that with networks throwing NAT errors, but need a secure P2P file solution for large data transfers. Wondering if this wil do the trick.
评论 #23043524 未加载
jchookabout 5 years ago
Why not generate the QR code client-side?<p>Folks that care about P2P want to see zero HTTP requests to your server after loading the basic resources.
评论 #23025666 未加载
andrewfromxabout 5 years ago
Anyone else get something like this? <a href="https:&#x2F;&#x2F;github.com&#x2F;saljam&#x2F;webwormhole&#x2F;issues&#x2F;27" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;saljam&#x2F;webwormhole&#x2F;issues&#x2F;27</a> I was running `ww send ~&#x2F;Downloads&#x2F;myfile.bin` and my friend went to recv it from browser.
rpmullerabout 5 years ago
This makes me ridiculously happy. Magic wormhole is one of those tools that works so well that you want to use it even when you don&#x27;t need to. So happy to see something like this so I don&#x27;t have to install wormhole on my wife or my son&#x27;s computers to send them stuff.
kevincoxabout 5 years ago
It is annoying that it removes the ID from the URL. It would be nice to bookmark my own code and I can just open it on multiple devices whenever I want to transfer a file. However I need to do a bit of gymnastics with the QR code to grab the URL.
评论 #23024330 未加载
estabout 5 years ago
This is nice and all but is it possible to make a few kilobytes single-file static HTML instead of 2.7MB <a href="https:&#x2F;&#x2F;webwormhole.io&#x2F;util.wasm" rel="nofollow">https:&#x2F;&#x2F;webwormhole.io&#x2F;util.wasm</a> ?<p>I want to host it on my router.
harelabout 5 years ago
I&#x27;ve just used it. It&#x27;s absolutely fantastic. Saved me from sending a 500MB file through a sharing service or having to create S3 temporary buckets or whatever other complicated method. Simple, works, perfect. Thank you!
gramakriabout 5 years ago
file.pizza is another similar project
评论 #23024163 未加载
评论 #23024516 未加载
评论 #23024557 未加载
评论 #23024747 未加载
评论 #23024400 未加载
neimanabout 5 years ago
Is there a size limit of on the files? This was the issue with all WebRTC file sending websites I saw so far.
waynenilsenabout 5 years ago
We need a distributed db based on webrtc
评论 #23024480 未加载
评论 #23024924 未加载
评论 #23024139 未加载
0xdeadbeefbabeabout 5 years ago
Who pays for the stun and turn servers?
评论 #23025410 未加载
评论 #23027761 未加载
mgerbabout 5 years ago
Seems to work well sending images from my phone, but please let me select multiple at one time.
jonplackettabout 5 years ago
How secure is this?
评论 #23025802 未加载
andred14about 5 years ago
Come on it didn&#x27;t work with a 5.5GB file :P
评论 #23026218 未加载
duke360about 5 years ago
it happily loops forever tranferring an empty file :D
jo32about 5 years ago
consuming enormous cpu resources