News for hackers. Stuff that matters.
Re:PeerServer: A Server in a Browser with WebRTC by swestwood on Friday November 15, 2013 @04:21PM (#6742230)
I built PeerServer with a friend in 8 weeks last spring for our Stanford senior project -- it's a pleasant surprise to see it on HN six months later.

We are planning to open-source the code and create a brief video showing off its abilities this weekend, as well as fix some of the issues you may be having in more recent versions of Firefox. The WebRTC DataChannel spec has been changing, so it works in FF 22 (beta at the time we developed it) but breaks for some later versions where the API changed. It'll be fixed over the weekend for FF and the latest Chrome -- sorry for the issues some are having now.

Thanks for the great comments and enthusiasm!

Re:PeerServer: A Server in a Browser with WebRTC by swestwood on Friday November 15, 2013 @04:22PM (#6742238)
Also @sophiawestwood on Twitter if you'd like to chat about it
Re:PeerServer: A Server in a Browser with WebRTC by graue on Friday November 15, 2013 @03:19PM (#6741885)
Won't connect for me (Fx 25, Linux). Blank white screen and this in the console:

TypeError: Not enough arguments to mozRTCPeerConnection.createOffer. @ http://www.peer-server.com/shared/lib/peer.min.js:1

Re:PeerServer: A Server in a Browser with WebRTC by azakai on Friday November 15, 2013 @03:37PM (#6741995)
Same on FF 28, also Linux.
Re:PeerServer: A Server in a Browser with WebRTC by gagege on Friday November 15, 2013 @04:31PM (#6742276)
FF 25.0.1 Windows, same :(

Awesome idea though, I can't wait till it works cross-browser!

Re:PeerServer: A Server in a Browser with WebRTC by azakai on Friday November 15, 2013 @04:35PM (#6742298)
Yeah, this is very exciting stuff, and bugs and problems are expected with something this cutting edge.
Re:PeerServer: A Server in a Browser with WebRTC by headgasket on Friday November 15, 2013 @02:18PM (#6741486)
Quite interesting idea.

On this we could have a distributed web server that scales as new ppl load the (site??). I can see this hurting akamai. People now have 10Mbps-20Mpbs up on DSL and cable; even before widespread FTOH this could become potent. It would also simplify a Tor alternative implementation, would'nt it?

Re:PeerServer: A Server in a Browser with WebRTC by phaer on Friday November 15, 2013 @03:51PM (#6742077)
> People now have 10Mbps-20Mpbs up on DSL and cable; Are you talking about the bay area? I have never seen such an connection in a private home. (central and southern europe)
Re:PeerServer: A Server in a Browser with WebRTC by headgasket on Friday November 15, 2013 @05:18PM (#6742545)
We have it here in Mtl Canada. It's fiber to the neighbourhood and a new hi-speed DSL link for the last 200-300M.
Re:PeerServer: A Server in a Browser with WebRTC by piranha on Friday November 15, 2013 @04:22PM (#6742234)
Here in Ukraine that's pretty common. I have 60 mbps for 9$/m, and that is quite normal in Kyiv.
Re:PeerServer: A Server in a Browser with WebRTC by boulderdash on Friday November 15, 2013 @08:15PM (#6743146)
guess what, in the bay area, connectivity up is generally even worse than that. For all the amazing internet companies here, the infrastructure for the public is pretty bad.
Re:PeerServer: A Server in a Browser with WebRTC by skimmas on Friday November 15, 2013 @04:13PM (#6742173)
southern europe here (portugal) and in the cities it's pretty common
Re:PeerServer: A Server in a Browser with WebRTC by sil3ntmac on Friday November 15, 2013 @02:00PM (#6741384)
Congrats, I have been waiting to see someone build something like this for a while. This is truly a glimpse into the future :)

Edit: I should have vetted this a little harder before commenting. I recognized the idea immediately, but the implementation here is rather lacking. Still, props for pushing the envelop.

Re:PeerServer: A Server in a Browser with WebRTC by sil3ntmac on Friday November 15, 2013 @02:00PM (#6741386)
Erm, you guys did disable TURN right? (because otherwise the security value here is fairly decreased)
Re:PeerServer: A Server in a Browser with WebRTC by panzi on Friday November 15, 2013 @04:22PM (#6742231)
Firefox 25 (Linux):

"[22:21:01.082] TypeError: Not enough arguments to mozRTCPeerConnection.createOffer. @ http://www.peer-server.com/shared/lib/peer.min.js:1"

Re:PeerServer: A Server in a Browser with WebRTC by 0x0 on Friday November 15, 2013 @03:56PM (#6742098)
Reminds me about Opera Unite.
Re:PeerServer: A Server in a Browser with WebRTC by minimaxir on Friday November 15, 2013 @01:09PM (#6740998)
Using profanity for needless shock value is not an effective way to get people to click your link.
Re:PeerServer: A Server in a Browser with WebRTC by minimaxir on Friday November 15, 2013 @01:34PM (#6741206)
(original title was along the lines of "Here's WebRTC, because F--K Servers.")
Re:PeerServer: A Server in a Browser with WebRTC by pessimizer on Friday November 15, 2013 @01:26PM (#6741132)
Capitalizing the 'K' was, though. Set off my OCD:)
Re:PeerServer: A Server in a Browser with WebRTC by SimHacker on Friday November 15, 2013 @04:08PM (#6742148)
What's wrong with fsck'ing servers?
Re:PeerServer: A Server in a Browser with WebRTC by wrongc0ntinent on Friday November 15, 2013 @01:24PM (#6741118)
Nice! Why not chrome, exactly?
Re:PeerServer: A Server in a Browser with WebRTC by aroch on Friday November 15, 2013 @01:50PM (#6741332)
Last I checked Chrome's DataChannels implementation was flakey and missing support for several attributes
Re:PeerServer: A Server in a Browser with WebRTC by mace on Friday November 15, 2013 @03:38PM (#6742000)
This should no longer be true. Chrome v31 (http://googlechromereleases.blogspot.com/2013/11/stable-chan...) added SCTP support for reliable DataChannels and allowing compatibility with Firefox.
Re:PeerServer: A Server in a Browser with WebRTC by krishnasrinivas on Sunday November 17, 2013 @02:17AM (#6747967)
Chrome and Firefox DataChannels cannot connect with each other. Chrome and Firefox media connections can interop though
Re:PeerServer: A Server in a Browser with WebRTC by sil3ntmac on Friday November 15, 2013 @02:03PM (#6741405)
there are a few workarounds you have to use. there is a compatibility shim floating around somewhere (i think from mozilla).