12 ms·
Snapdrop – AirDrop equivalent through a web browser using WebRTC
- habil 6y agoI am very impressed and added it to my favorites immediately.
- mlacks 6y agothis has been around for four years?! Awesome! Would like to see the faq more easily accessible for troubleshooting. Was not able to send jpgs the first few tries
- Beaver117 6y agoThere have been hundreds of these type of WebRTC file transfer sites. They never seem to work very well.
- winrid 6y agoIt looks like this one is sending all the traffic through a single nodeJS worker. Not surprising.
- mtberatwork 6y agoIt's just the signalling server to exchange ICE candidates. Once the connection has been made between two devices, the traffic is direct...unless they are on two different networks and/or firewalled, then you would need a TURN server to relay traffic through.
- winrid 6y agoAh, thanks for taking a closer look and commenting
- zaroth 6y ago> You are known as Azure Bug Ok, that’s cute. I would perhaps delay showing the funny name until at least one other machine is detected, it makes it feel like my name is being broadcast over the public Internet for anyone to connect to, and not just a LAN connection, the way it is. But worked perfectly for me to send a few photos back and forth. LAN connections seem like the perfect application for WebRTC not having to deal with TURN or STUN. It is a bit unnerving that there’s no permission request before being able to do network discovery on the LAN however. How is one machine finding the other? Central server matching the public IP used to then share their private IP? Or does WebRTC provide a discovery service? Edit: Ok, Looking at the server code [1] there is indeed a “room” per public IP and the server passes messages between peers in the same room. [1] - https://github.com/RobinLinus/snapdrop/blob/master/server/index.js https://github.com/RobinLinus/snapdrop/blob/master/server/in...
- winrid 6y agoIt looks like the server could easily be expanded to allow you to enter the other person's ID and send to them over WAN
- zaroth 6y agoThe code is so simple mostly because it doesn’t need to deal with NAT hole-punching. It would have been beautiful if the discovery could have been purely client-side though.
- deleted 6y ago[deleted]
- dheera 6y agoAlthough my plate is pretty full with projects I'm curious to know whether it's possible to implement a peer discovery service by consuming bandwidth in a modulated fashion and detecting those changes in bandwidth availability on another machine. You could also scan a LAN's entire subnet for machines with this: https://github.com/jdfreder/pingjs https://github.com/jdfreder/pingjs
- s09dfhks 6y agoDidnt seem to want to work. Only got one prompt to accept a file out of the 10 or so tries I did
- Triv888 6y agowow, nice. I connected using my phone (2nd device) and noticed that I was on 4G and switched to WiFi at that time and there was no hitches (1st device was discovered no problem)
- billconan 6y agohow was device discovery implemented?
- rektide 6y agothis is 100% the thing apple does that google absolutely refuses to de-intermediate themselves out of. apple allows direct bluetooth discovery, google 100% insists on closed proprietary "android nearby" systems to find local devices. neither release protocols or standards to interoperate on.
- w-ll 6y agoWhy can't I Airdrop from my phone to my MacMini thats connected via ethernet cable. They are on the same network, and verified with other tools, but AirDrop has to be done over wifi for what reason?
- tidepod12 6y agoBecause AirDrop doesn't use your local network at all, it creates a direct peer-to-peer wifi connection between the two Apple devices. It has no way to do that via an ethernet cable.
- navanchauhan 6y agoTo add to this, if you’re connected via Ethernet but your WiFi is on ( doesn’t need to be connected to any network ), AirDrop will still work.
- deleted 6y ago[deleted]
- systoll 6y agoShort answer is - Airdrop is a protocol for setting up ad-hoc wifi networks via Bluetooth LE. If it went over ethernet it wouldn't be airdrop. Long answer: Airdrop does discovery via bluetooth. To send a file, the two devices connect via bluetooth to negotiate the details of a new ad-hoc wifi connection, which they then create, connect to, and use for the transfer. The discovery does not rely on a shared network, and once connected, the devices never 'discuss' whether they already share a network, so it's WIFI or nothing. This gives some security guarantees that wouldn't exist otherwise. EG: Airdrop won't go through Starbucks' WIFI, even if both the sender & receiver are connected to it. Honestly I'm not sure how important those guarantees are -- but they're there. I don't think there's a fundamental barrier stopping Apple from: 1. Having devices advertise an 'airdrop-box' through Bonjour as well as though bluetooth LE, 2. Including these entires in the Airdrop UI 3. De-duping entries where it figures out that a network device is the same as a bluetooth device. 4. Running same-network transfers through SMB rather than using [what they currently call] Airdrop to negotiate an ad-hoc WIFI network. ...but they haven't done so.
- 1cvmask 6y agoAny big service using this?
- gjsman-1000 6y agoInterestingly, besides sharing files, you can also right-click a device to send a message to that device. It's fully encrypted end-to-end between points on your network.
- cft 6y agoAs a practical matter, I find Signal's "Note to Self" extremely useful for private across-devices sharing.
- op03 6y agoYup. I have been using it a lot. Didn't realize it even exited until I installed the desktop client and it showed up in contacts. They need some good PR on that feature.
- SpaceRaccoon 6y agoTelegram has similar "Saved Messages" feature.
- bartvk 6y agoCan you expand om that? The way I send something to myself on Telegram is by posting something in a group, of which I'm the only member.
- czottmann 6y agoIn the Telegram "Chats" tab, search for "Saved Messages". It's an automatically created dropbox of sorts just for you. The icon is a wee bookmark.
- SpaceRaccoon 6y agohttps://telegram.org/blog/albums-saved-messages https://telegram.org/blog/albums-saved-messages https://www.tech-recipes.com/rx/73778/how-to-save-unlimited-messages-and-set-reminders-on-telegram/ https://www.tech-recipes.com/rx/73778/how-to-save-unlimited-... "Saved Messages" looks like a private chat that only you can see. You can drop messages or files in there, or forward them there from other chats, and access them from any other device. It's pretty similar to what you describe.
- fsflover 6y agoBut it's not e2e encrypted.
- Waterluvian 6y agoRidiculously impressed how instant and effortless it was to transfer a pdf from my iPhone to my iPad.
- darig 6y agoAirDrop doesn't require that I give a 3rd party domain owner access to my files.
- scosman 6y agoThis was the best demo I've seen in a long time. Simple, fast, worked well. Great job!
- myself248 6y agoOn the other hand, if it's not working, there's absolutely no information about why not. Seems fine between (firefox on ubuntu) and (safari on ios), but neither can talk to (chromium/bromite on e.os) and there's no error message or anything, just nothing ever shows up at the other end. Super slick between the two that do work, though!
- bartvk 6y ago> if it's not working, there's absolutely no information about why not Sounds like my experience with Apple's regular Airdrop :) but to be honest, it's been quite some time since it failed me.
- elwebmaster 6y agoI am working on an open source framework which connects nodes for collaboration and p2p transfer. I started off with WebRTC at the core but have since made it optional transport due to lack of portability. Snapdrop is amazing but if you give up on WebRTC you can use QR code for discovery and transfer files even when not on the same network.
- kekub 6y agoDo you have any more information on that? Is there already a repo or something I can follow?
- subins2000 6y agoWebRTC connection requires the peers to exchange signal data. This can be through a middleman server, Qr code or even pen & paper. I've made a library that uses WebTorrent trackers to exchange the signal data and make P2P connections : https://github.com/subins2000/p2pt https://github.com/subins2000/p2pt
- elwebmaster 6y agoSignalling through QR code or pen & paper while possible in theory is not feasible in practice because both sides need to exchange ICE candidates & offer/answer. So a signalling middleman, whether through websockets, SSE, polling, etc. is needed. And if you want to support network handoff then you need persistent connection to the signalling server for re-negotiation.
- elwebmaster 6y agoYes, the first version is here: https://github.com/uhst/uhst-client-js https://github.com/uhst/uhst-client-js and there is a demo Ping app: https://examples.run/ping/ https://examples.run/ping/ . Originally my idea was to use SSE for signalling but in version 2 it becomes a relay between peers. This approach will make it portable to mobile (native, Flutter, RN) which is difficult to do with WebRTC. The added throughput and latency should be similar to using TURN server with WebRTC. Websockets are the more common choice for signalling but HTTP/2.0 brings a new life to SSE.
- jibbers 6y agoThis looks great! Small nitpick about the wording of this: "Notifications permission has been blocked as the user has dismissed the permission prompt several times. This can be reset in Page Info which can be accessed by clicking the lock icon next to the URL." I have Safari set to not allow websites to ask for notification privileges at all and did not see a single prompt. And I don't think you can toggle it from the lock icon.
- est 6y agoIs there a static, single html version of this? So I can host it on my cheap OpenWRT router with minimal effort.
- metahost 6y agoYou can probably use the docker container from the repo. Link: https://github.com/RobinLinus/snapdrop https://github.com/RobinLinus/snapdrop
- capableweb 6y agoIt's not a SPA that can run without a backend, so no. Most of the clients will need to connect via the backend which is currently run at wss://snapdrop.net/server/webrtc. Without it, they won't be able to penetrate NAT and will be unreachable.
- est 6y agoHmm, I thought WebWTC was p2p? If a server is needed anyway, could it be implemented in easier, OpenWRT-compatible way?
- capableweb 6y ago> Hmm, I thought WebWTC was p2p? You and many others :) WebRTC (Web Real-Time Communications) is faux-P2P, in that in order to establish the P2P connection, you'll need a server in-between as browsers cannot accept incoming connections, you can only dial out and then start listen for replies. > If a server is needed anyway, could it be implemented in easier, OpenWRT-compatible way? I'm not sure why it would have to be OpenWRT-compatible? OpenWRT is just Linux run on less-powerful hardware (over-simplification obviously), so anything Linux can run, should be able to run on OpenWRT. Find your favorite STUN/signalling server and try running on OpenWRT, should work fine.
- subins2000 6y agoI have made a similar application at https://WebDrop.Space https://WebDrop.Space It uses WebTorrent trackers and is easier to setup offline on network. https://github.com/subins2000/WebDrop https://github.com/subins2000/WebDrop
- MrGilbert 6y agoOn a similar note: I use [1] for sharing files, links etc. between two devices. Best feature for me: I can generate a qr code, scan that and be instantly connected - no matter which network I‘m on. [1]: https://github.com/mustakimali/just-an-email https://github.com/mustakimali/just-an-email
- durpkingOP 6y agoself promo lmao
- thelollies 6y agoIt looks like MrGilbert has forked [0] just-an-email but it's not actually his project? [0] https://github.com/DanielGilbert/just-an-email https://github.com/DanielGilbert/just-an-email
- MrGilbert 6y agoThat is correct. Besides reporting a bug, I'm not affiliated with this project. Too bad GP doesn't know much about forking to tell the difference, but is fast enough to blame.
- deleted 6y ago[deleted]
- elmimmo 6y agoSimilar to sharedrop.io [1] in name, user naming and appearance. The latter does allow sharing between users not in the same IP too, though. I am not affiliated with either. [1]: https://sharedrop.io https://sharedrop.io
- jbm 6y agoI love the concept. Kudos! Some feedback; I have an iPhone and Firefox running on Ubuntu; they could find each other, but the iPhone couldn't send files to the Firefox instance. It did work with Chromium though (which was very cool)
- ishanjain28 6y agoI really don't understand HN's obsession with webrtc based file sharing tools. 1 of these is posted every 6 months or so, Every version of it is doing more or less the same thing and every time it gets to the front page and stays on it for a while. What's happening?
- kaielvin 6y agoI guess they seem to solve a common difficulty (cross-device file sharing), but in the end they are not good enough to be widely adopted, and they get forgotten.
- amelius 6y agoThe main feature that's missing from all these services is: integration into whatever messaging application the user is already using (email, Whatsapp, ...)
- tomcam 6y agoSo posting one of these every six months or so counts as an obsession?
- amir734jj 6y agoThis is my SignalR alternative with end-to-end encryption. Choose a password and the file / message will be encrypted in client side. URL: https://symmetric-crypto-chat-room.herokuapp.com/ https://symmetric-crypto-chat-room.herokuapp.com/ Repo: https://github.com/amir734jj/SymmetricCryptoChatRoom https://github.com/amir734jj/SymmetricCryptoChatRoom
- deanclatworthy 6y agoIs this any different to sharedrop.io, and how does it handle large files? I tried to send a zip file through sharedrop.io to my father and it just hung with no progress bar - so I had no idea if it was sending really or not. At least network manager showed only very slow upload.
- ProtoAES256 6y agoI sent a 5GiB file from my android phone to my laptop, my phone hungs for nearly a minute before it starts the sending process. My hypothesis is that it needs some 'processing' from and to the browser and the phone storage.
- lozf 6y agoFrom a previous discussion I noted that sharedrop.io uses Googles Firebase, and ember.js - this doesn't and has fewer dependencies.
- pacoverdi 6y agoIs there an audio chat equivalent of this? When I'm playing networked games with my kids from separate rooms, we often have to resort to overkill utilities like Whatsapp / Discord / etc.
- ignoramous 6y agoFree: https://kosmi.io https://kosmi.io ?
- pacoverdi 6y agoThanks for the tip. It works but it looks very heavy on the CPU. My fans started spinning not long after I opened the site (2014 MBP / Chrome) What I would like is a dead-simple app equivalent to a walkie talkie. Self-hosted would be even better, in case we are using local wlan with no internet access. I found tons of tutorials on how to create a WebRTC application, but strangely no ready-to-use solution.
- ignoramous 6y agoRight; not sure if WebRTC but see: https://github.com/mafintosh/hyperphone https://github.com/mafintosh/hyperphone
- iCarrot 6y agoMaybe a softphone, like linphone? Works offline and P2P: https://www.linphone.org/ https://www.linphone.org/
- blntechie 6y agoTelegram added a group voice chat feature yesterday. Please check if that works for you. It worked for me well.
- renw0rp 6y agoTeamspeak (or ventrilo) used to be the way to go when I was into online multiplayer games (~10 years ago). Not in browser, but low latency and extremely low resource requirements (definitely less than one browser tab; we have tried Skype back then as well, but it was using too much recorded for the computers we had back then, especially if there was more than 2 people on the call). You could host teamspeak server yourself on your local LAN. Not sure if there is some easy discovery mechanism or you would need to know the local IP (and ideally set up static DHCP for the "server"). I imagine WebRTC might require some sort of server as well, so I don't think you can get something purely in browser on all machines, but if you learn about anything let me know!
- sgt 6y agoIt's not really an AirDrop equivalent if it requires you to be on the same network. AirDrop is really useful when you're out and about somewhere and you want to send someone a file. In those cases there's possibly not a WiFi available or in the case of visitors to your home; only you are on the network, not your friend. So I would not see the point of using this instead of AirDrop unless you have to send a file to someone using Android.
- capableweb 6y agoTo be fair, AirDrop requires you to be on the same network as well, as otherwise the devices don't have any way of communicating. If you're already on the same WiFi, it'll use WiFi but if not, it'll connect to each other via Bluetooth (eg, connecting to the same network [a network of two devices]), but the setup of the connection is automatic. Maybe Snapdrop can do something similar with the new Bluetooth Web APIs.
- vkoskiv 6y agoFalse. AirDrop does discovery via bluetooth, but then sets up an ad-hoc WiFi connection directly between devices to transmit data. No network required.
- felixr 6y ago> sets up an ad-hoc WiFi connection ... No network required. It does need a network, that's why it creates one using an ad-hoc WiFi connection.
- JoBrad 6y agoThe creation of this ad hoc network is seamless, invisible to the user, and doesn’t require _external_ network hardware.
- capableweb 6y ago> False > sets up an ad-hoc WiFi connection > No network required Guess we have different definitions of what a "network" is. I'd call that a network, of two devices.
- akvadrako 6y agoDoes this work with folders? For me that's a minimally viable feature.
- ignoramous 6y agocopypasting from a similar discussion: See https://file.pizza https://file.pizza for a similar file sharing service, but over BitTorrent over WebRTC (not sure if it requires a relay TURN server when peers are behind symmetric NAT) [1][2]. Other such services shared on news.yc previously: https://drop.lol https://drop.lol, https://lbry.com https://lbry.com, https://webwormhole.io https://webwormhole.io et al [3][4][5]. Just a reminder that, WebRTC doesn't leak your public-IP if you're behind a VPN [6]. -- [1] https://news.ycombinator.com/item?id=19603947 https://news.ycombinator.com/item?id=19603947 [2] https://tools.ietf.org/html/rfc8445 https://tools.ietf.org/html/rfc8445 [3] https://news.ycombinator.com/item?id=17356023 https://news.ycombinator.com/item?id=17356023 [4] https://news.ycombinator.com/item?id=22273674 https://news.ycombinator.com/item?id=22273674 [5] https://news.ycombinator.com/item?id=14649727 https://news.ycombinator.com/item?id=14649727 [6] https://news.ycombinator.com/item?id=12527956 https://news.ycombinator.com/item?id=12527956
- GeorgeTirebiter 6y agofile.pizza does not work between Win10 & android. Oddly, sending from W10, receive on android, when I enter the url into android, it successfully transfers the file name - but the actual file bits are 404. I agree with the sentiment: Why is this so hard in 2020? Normally, by now, we would have routed around the damage.
- mdrzn 6y agoAlso sharedrop.io
- mathfailure 6y agoNope, still not working. My desktop sees mobile, mobile sees desktop, yet no file transfer ever occurs in any direction.
- blntechie 6y agoWorked beautifully! Good work!!
- log101 6y agoHow is the performance?
- irae 6y agoIt is a shame AirDrop is not an standard across all devices. It's almost 2021 and we don't have a universal way to share files in original format. Most ways to transfer between android/iphone/mac/pc are over the internet and compressed. I guess the industry is not interested in collaboration.
- infthi 6y agoonly one platform of those four does not support bluetooth. Yes, it is definitely the industry who is not interested in collaboration.
- lxgr 6y agoVery true. I had high hopes for Google's "nearby share" which was initially announced as a cross-platform networkless way to share files, but these ambitions seem to have been scaled back to "Android to Android only, and it sometimes uses mobile data as a fallback"...
- confiq 6y agoIt's easy when you are a monopoly, you don't care about standards and others people...
- whywhywhywhy 6y agoWhich all works great if you serve all markets but my high end work was pushed off Apple because they literally didn't sell machines powerful enough (still don't), trying to get a 60fps 4K video off my iPhone and onto the high end PC to edit it was a complete nightmare I was lucky enough to experience recently. File is too big for gmail,whatsapp,slack and all the usual gotos, my work Mac laptops hard drive is too small to airdrop there and transfer. Can't remember what my solution in the end was but the walled garden of iOS wasted over an hour of my time on a deadline.
- prtkgpt 6y agoThis is great. Thank you for sharing this. I just did a comparison test on the same network with AirDrop! And SnapDrop is a lot faster. Kudos.
- ffhhj 6y agoWorks fine for small files, but got stuck with a 15GB archive. Does it load the whole file into memory? EDIT: After a few minutes with a black screen it started transferring. EDIT 2: The transfer was suddendly canceled.
- rglover 6y agoI've been looking for something like this for awhile and the UX on this is great. Just tested it out and it did exactly what I wanted. Does anybody know how the discovery mechanism works?
- kenjim83 6y agoThis is a great app! Useful and to the point.
- Capira 6y agoI'm the developer of Snapdrop. Thanks for sharing this. Merry Christmas from Germany!
- anaganisk 6y agoUi and names look so similar to sharedrop
- Capira 6y agoBoth are inspired by Airdrop...
- GeorgeTirebiter 6y agoHi, this does not work for me between W10 and android. How can I go about debugging this? Both names appear on both screens, but no files seem to transfer. I tried web & app on android, no difference. Thanks!
- Capira 6y agoCould you share the console output please?
- smusamashah 6y agoNot web based but I have used croc https://github.com/schollz/croc https://github.com/schollz/croc to send files between pc and laptop on same network and between two computers on different continents.