News for hackers. Stuff that matters.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by skrowl on Tuesday March 25, 2014 @04:23PM (#7468695)
It sounded interesting until: Allow www.sharedrop.io to run "Adobe Flash"?

Then: We're really sorry, but your browser is not supported. Please use the latest Chrome for Desktop or Android or Opera. Firefox support is coming soon!

So basically, this is a webkit app, not a HTML5 app?

Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by szimek on Tuesday March 25, 2014 @04:44PM (#7468827)
No idea why it asked for Flash.

At this moment the app works only in Chrome and Opera, because Firefox doesn't support HTML5 FileSystem API. There's a polyfill for that, but we had some issues with it, so we've decided to release it anyway. We'll continue working on Firefox support. The whole source code is available on GitHub (https://github.com/cowbell/sharedrop), so anyone can help.

Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by higherpurpose on Tuesday March 25, 2014 @07:59PM (#7470312)
This reminds me of how awfully behind IE is in HTML5 development. If even Firefox doesn't have this feature, IE might not get it for at least another 2 years. I don't think Microsoft has even announced support for WebRTC in any future IE version yet.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by alexjh on Tuesday March 25, 2014 @06:49PM (#7469825)
I'm running Chrome version 26.0.1410.63 on Linux, and I'm getting the not supported error message. Is there a minimum Chrome version?
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by szimek on Tuesday March 25, 2014 @06:59PM (#7469904)
I think it worked since 32. The current stable Chrome version is 33.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by szimek on Tuesday March 25, 2014 @11:39PM (#7471410)
I think I've figured out why it asked for Flash. I forgot to remove socket.io related files that we were using before switching to Firebase.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by luke-stanley on Wednesday March 26, 2014 @08:40AM (#7472945)
Why did you switch to Firebase?
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by szimek on Wednesday March 26, 2014 @10:12AM (#7473431)
Originally, we used socket.io for presence management and PeerJS library (http://peerjs.com), which uses its own websocket server, for WebRTC signaling. We had 2 websocket servers and we really wanted to avoid hosting them ourselves, so we considered 3 third-party services - Pusher, PubNub and Firebase.

Pusher has really awkward presence management that requires you to store user state on your own server, if I understood their docs correctly.

PubNub had similar issue as Pusher, though very recently they released a new feature that allows you to broadcast user state changes without having to store it on your own server.

Firebase is in my opinion the easiest one to use, especially for presence management, because it's a real database and not only a messaging service. It's also actually really easy to use for private messaging as well, even though I think it wasn't originally designed for that. We've changed PeerJS library to use Firebase for WebRTC signaling, which is basically a form of private messaging. We've also used Firebase in some of our previous projects - e.g. https://github.com/cowbell/presence-firebase.

If you're interested, you can check out the relevant source code for presence management at https://github.com/cowbell/sharedrop/blob/master/app/scripts... and WebRTC signaling at https://github.com/cowbell/sharedrop/blob/master/app/scripts....

Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by derefr on Tuesday March 25, 2014 @04:41PM (#7468810)
Something can be supported by an HTML5 standard, where all browsers have agreed to implement that standard, but only a few have gotten around to it yet. (Not sure if that's the case here.)
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by headShrinker on Tuesday March 25, 2014 @06:13PM (#7469552)
Chrome doesn't use Webkit anymore. Safari does and it's not supported by this website.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by pjmlp on Tuesday March 25, 2014 @04:59PM (#7468929)
Webkit is the new IE.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by Angostura on Wednesday March 26, 2014 @05:26AM (#7472356)
It's not a Webkit app - it rejects the latest version of Safari on Mac too - and you can't get much Webkittier than that.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by robmcm on Wednesday March 26, 2014 @06:57AM (#7472617)
Wow, someone is really pushing the boundaries of what is possible on the web and all you care about is old browser support.

That's it guys, lets pack up and go back to getting CSS to center vertically.

Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by NathanKP on Tuesday March 25, 2014 @04:40PM (#7468807)
This is really amazing! I had a bit of trouble on my first attempt because I was connected to a VPN, so ShareDrop was considering me to be in the 10.* range (my local IP address on the VPN) while my coworker on the same router showed up in the 192.* range. I was able to send him a file, but he obviously couldn't send me one back because he wasn't connected to the same VPN.

Once I disconnected from the VPN then ShareDrop starting using my local 192.* IP address instead of my remote VPN address and it worked both ways.

Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by conductor on Tuesday March 25, 2014 @07:11PM (#7469996)
Does this mean that any JavaScript code can determine the client's local IP addresses? Then it can be used for identification, I think browsers should let the users white-list the sites which are allowed to use WebRTC.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by szimek on Tuesday March 25, 2014 @07:38PM (#7470168)
It seems so. I was a bit surprised myself, but this data is taken from the info that browsers send to each other to determine the best path for P2P connection. The actual code for determining local IP is taken from http://net.ipcalf.com.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by nashashmi on Tuesday March 25, 2014 @07:01PM (#7469921)
I believe it is the public IP address and not the local IP address that brings everyone to the same page.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by jonalmeida on Wednesday March 26, 2014 @12:02AM (#7471502)
I don't think that's true. I'm connected to a VPN using the built-in VPN client but none of my traffic is going through it (i.e. Send all traffic over VPN connection is unchecked) and my public IP is still the one that my phone has.

EDIT: It seems that the displayed IP is only incorrect, but the service still works over your local IP.

Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by 0x0 on Tuesday March 25, 2014 @03:51PM (#7468465)
Cool, but one major advantage to airdrop is that it doesn't require a local network at all, so you can airdrop even without any wifi AP in range.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by szimek on Tuesday March 25, 2014 @03:58PM (#7468516)
Sure, we mention it even in the README (https://github.com/cowbell/sharedrop/blob/master/README.md). There's probably a workaround if you have a phone with internet access - you could create a local WiFi network on it and connect to ShareDrop through it. Haven't tried it though.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by katowulf on Tuesday March 25, 2014 @08:02PM (#7470328)
And one advantage to this is that it anything that can view a web page can reach it. I don't have to ask my grandma to install an app on her phone to get a picture on her desktop computer from me : )
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by nashashmi on Tuesday March 25, 2014 @06:59PM (#7469908)
I believe the people of Qatar will have an issue with this because they all use a single public IP address. So any Qatari could send a another Qatari a file if they were all to log on.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by utopkara on Tuesday March 25, 2014 @04:50PM (#7468870)
Noob question: It seems like websockets is more appropriate for sending files to peers, why would they go for webrtc?
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by arcameron on Tuesday March 25, 2014 @05:09PM (#7468975)
No central server to intercept the file in transit
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by headShrinker on Tuesday March 25, 2014 @06:08PM (#7469509)
"We're really sorry, but your browser is not supported. Please use the latest Chrome for Desktop or Android or Opera. Firefox support is coming soon!"

What could possibly be the reason they wouldn't support webkit based browsers?

Safari 7.0.2 OS 10.9.2

Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by teleclimber on Tuesday March 25, 2014 @06:10PM (#7469529)
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by rainmaking on Tuesday March 25, 2014 @04:57PM (#7468920)
Holy fucking shit this is the best thing since sliced bread. You don't know how much I hate emailing file attachments.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by szimek on Tuesday March 25, 2014 @05:11PM (#7468993)
Hopefully, we'll add sending files between networks pretty soon as well.

However, it's already possible with similar WebRTC based services like https://www.sharefest.me/ or https://rtccopy.com/.

Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by rainmaking on Tuesday March 25, 2014 @06:15PM (#7469570)
Thanks!

Ironically, most of my file emailing does in fact take place within the same network.

Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by nashashmi on Tuesday March 25, 2014 @07:05PM (#7469955)
Why no use of SMB networks? Always puzzled me.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by rainmaking on Wednesday March 26, 2014 @08:43AM (#7472959)
Because configuring SMB on each machine is hard and takes time.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by rainmaking on Wednesday March 26, 2014 @08:51AM (#7472993)
sharefest and rtcopy suffer of complexity suckage, please hurry :)
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by marquis on Tuesday March 25, 2014 @06:46PM (#7469808)
I opened this with the Hamachi VPN open, and suddenly could share files with my computer on the other side of the world. I have a Mac so usually do this via the built-in sharing but if it were Windows it's certainly easier than messing with Samba.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by snikch on Tuesday March 25, 2014 @04:34PM (#7468757)
I had a look at doing this myself recently to do iPhone -> Laptop transfers. Does this work for mobile -> desktop? I didn't think that WebRTC was available on mobile safari and therefore wouldn't work.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by szimek on Tuesday March 25, 2014 @04:57PM (#7468919)
It depends on what you mean by "mobile" :) It works between Chrome on Android and desktop. Unfortunately, Safari (neither desktop nor mobile) doesn't support WebRTC.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by dhfromkorea on Wednesday March 26, 2014 @03:14AM (#7472052)
This is really cool. I am curious why Chrome on iOS wasn't made available yet? (i.e. if there was technical roadblock that made it difficult for you to do so.)
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by nanch on Tuesday March 25, 2014 @04:38PM (#7468785)
Something similar (with a server in the middle) for android<->computer is EZ Drop: http://ez.dropper.co
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by abemassry on Tuesday March 25, 2014 @05:01PM (#7468937)
Another one with a server in the middle: https://wsend.net/upload
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by sfaruque on Wednesday March 26, 2014 @05:45AM (#7472416)
I'm getting transfer speeds of ~970KB/s (checking using iStat). Averaging nearly 1MB/s isn't bad, but I'm curious, could this go faster?
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by szimek on Wednesday March 26, 2014 @05:51AM (#7472430)
Yeah, it probably could. I think that https://www.sharefest.me/ has faster transfer speeds, especially that it allows you to download the same file from more than one peer.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by christiangenco on Tuesday March 25, 2014 @05:12PM (#7468999)
Very cool! I love the P2P aspect.

I have a similar project that drops files in your dropbox account: http://dbinbox.com

Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by rpowers on Tuesday March 25, 2014 @05:04PM (#7468951)
Looks like a clone of my friends page: http://www.sumodrop.com

*edit: I guess 'clone' is too strong. I meant to imply it has similar functionality, not that it is carbon copied. Yes, I goofed.

Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by rkuykendall-com on Tuesday March 25, 2014 @05:14PM (#7469012)
> Looks like a clone...

Sorry, I know you probably feel very strongly about your friend's app, but it doesn't LOOK anything like it, and the functionality is clearly copied from AirDrop. I doubt the ShareDrop developers had ever heard of your friend's app.

Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by RyanZAG on Tuesday March 25, 2014 @05:09PM (#7468976)
This one even works on Firefox. Nice.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by szimek on Tuesday March 25, 2014 @05:17PM (#7469025)
Pretty cool. It does upload the files to S3 though, right?

ShareDrop in theory should be much faster (especially on local network) and more secure, as it sends files directly between devices without any server in the middle.

Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by rpowers on Tuesday March 25, 2014 @06:28PM (#7469688)
True. I think the difference would be more obvious with popular files. Say you're at a lecture with 400+ students around you and you want to share some content. Hitting an S3 bucket might make more sense than handling 400+ connections locally.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by lerxst on Tuesday March 25, 2014 @11:10PM (#7471322)
This is really cool!

Initially, I tried using this between a computer on my 2.4 GHz band and a computer on my 5 GHz band, and I guess the JavaScript wasn't able to determine the local IP addresses. However, after switching to the same frequency it worked.

Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by barbs on Tuesday March 25, 2014 @06:08PM (#7469514)
A cross-platform (but not web-based) open-source LAN file-transfer tool that I've used in the past is dukto:

https://code.google.com/p/dukto/

Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by katowulf on Tuesday March 25, 2014 @08:03PM (#7470333)
And it uses Firebase, my favorite real-time service! Awesome stuff gents.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by modarts on Wednesday March 26, 2014 @02:51AM (#7471990)
this is the kind of stuff I come to HN for. Well done sir.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by zacinbusiness on Tuesday March 25, 2014 @05:35PM (#7469126)
This is awesome and it makes me wonder about other potential capabilities. Could a similar method be used to create two-way text chat, for instance?
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by szimek on Tuesday March 25, 2014 @05:46PM (#7469284)
Sure. WebRTC allows you to send any data, audio and video directly between peers. Though to be honest there are much easier ways to create text chat.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by zacinbusiness on Tuesday March 25, 2014 @05:57PM (#7469412)
Oh I was thinking about a collaboration scenario. Something next door to pair programming where two people are working on a document together but just not simultaneously.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by thearn4 on Tuesday March 25, 2014 @05:53PM (#7469373)
Great stuff! I'm hosting a programming meetup this friday at a coffee shop, seems like a good opportunity to put it through it's paces.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by widdma on Tuesday March 25, 2014 @08:34PM (#7470560)
This is really nicely done, but it'd be nice to have some sound and/or popup notification when it's running in the background.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by hmhrex on Wednesday March 26, 2014 @11:10AM (#7473895)
Wasn't sure if this would be useful to me without mobile support, but man, it really saved my ass today. Thanks for this.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by ulfw on Thursday March 27, 2014 @07:46AM (#7479729)
"Please use the latest Chrome for Desktop or Android or Opera." Hm yea... maybe not.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by gabrielstuff on Tuesday March 25, 2014 @04:46PM (#7468846)
Nice one !
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by panbartek on Tuesday March 25, 2014 @03:47PM (#7468436)
seriously cool stuff
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by chriscareycode on Tuesday March 25, 2014 @06:39PM (#7469759)
It's an EmberJS app :)
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by szimek on Tuesday March 25, 2014 @07:42PM (#7470194)
Yes it is :)
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by chewbacha on Tuesday March 25, 2014 @11:49PM (#7471460)
wow, I'm blown away
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by rchgonzaga on Tuesday March 25, 2014 @06:11PM (#7469535)
awesome ... super cool !
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by est on Wednesday March 26, 2014 @02:14AM (#7471896)
it got my vmware IP address, not the actual one.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by atmosx on Tuesday March 25, 2014 @04:10PM (#7468603)
really cool and helpful.
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by saltcookie on Wednesday March 26, 2014 @10:48PM (#7478268)
U all should check out http://sumodrop.com
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by saltcookie on Wednesday March 26, 2014 @10:54PM (#7478285)
it works on mobile browsers also
Re:Show HN: HTML5 clone of OS X AirDrop – Easy P2P file tran... by saltcookie on Wednesday March 26, 2014 @11:12PM (#7478356)
u guys should check out http://sumodrop.com