Live data from Hacker News

Show HN: Pure JavaScript P2P file sharing in the browser

whatareyoudownloading.com

21–30 of 72 posts

Re: Show HN: Pure JavaScript P2P file sharing in the browser

#21
post #10

Isn't the browser supposed to stop pages from making connections to machines other than the server they were downloaded from? Has that requirement been dropped? Or does this do something strange to get around it?

Welcome to the world of impossibilities with WebRTC. http://en.wikipedia.org/wiki/WebRTC

Hummm. I've found that same-origin policy annoying on occasion but always assumed it was there for good reason and that it was important my browser couldn't just open sockets to any old machine.

Was I wrong? Was that not important? Did I go though all that pain for nothing?

Does this WebRTC thing have an on/off switch?

Re: Show HN: Pure JavaScript P2P file sharing in the browser

#22
post #21

Earlier quoted context omitted.

Welcome to the world of impossibilities with WebRTC. http://en.wikipedia.org/wiki/WebRTC

Hummm. I've found that same-origin policy annoying on occasion but always assumed it was there for good reason and that it was important my browser couldn't just open sockets to any old machine. Was I wrong? Was that not important? Did I go though all that pain for nothing? Does this WebRTC thing have an on/off switch?

WebRTC is for Real-time communication between browsers. Same-origin policy applies to communication between browser and the server.

http://www.w3.org/TR/webrtc/.

There are ways to turn it off on your browser, but why would you? :). The tech is yours to be used.

Re: Show HN: Pure JavaScript P2P file sharing in the browser

#23
post #16

Earlier quoted context omitted.

Files are transferred as blob. Encryption can be dropped in if required. :)

Encryption ought to be standard. Making it optional means most people won't use it.

Per spec DataChannels should use encryption by default, you must still encrypt all WebSocket or other traffic that goes via your server.

Re: Show HN: Pure JavaScript P2P file sharing in the browser

#24
I'd like to see this technology used to build a decentralized, uncensorable alternative to twitter or reddit.

That would have a far greater impact than yet another file-sharing system.

The architecture would basically be a flooding P2P network with measures against spamming (machine learning?).

Re: Show HN: Pure JavaScript P2P file sharing in the browser

#25
post #21

Earlier quoted context omitted.

Hummm. I've found that same-origin policy annoying on occasion but always assumed it was there for good reason and that it was important my browser couldn't just open sockets to any old machine. Was I wrong? Was that not important? Did I go though all that pain for nothing? Does this WebRTC thing have an on/off switch?

WebRTC is for Real-time communication between browsers. Same-origin policy applies to communication between browser and the server. http://www.w3.org/TR/webrtc/ . There are ways to turn it off on your browser, but why would you? :). The tech is yours to be used.

> The tech is yours to be used.

Well, the tech is for every website to be used, as a visitor to the site that may or may not benefit me. I think that was the reason for the same-origin policy and is, probably the source of concern of the OP.

Personally, I use NoScript and RequestPolicy to deal with it. After all, just because JavaScript exists does not mean I want any random website to execute arbitrary code on my machine (especially not with WebRTC).

Re: Show HN: Pure JavaScript P2P file sharing in the browser

#26
post #11

This does not work optimally on this site because the following issues: It uses HTML tags in javascript alert boxes http://tmp.fnordig.de/scr/aacc737f52.png

This currently works only on the latest browsers; like Chrome 24 on the desktop. Its still not 100% stable. Stability and support for other platforms will soon arrive through browsers updates and polyfills.

I am using Chrome 24 on the desktop. Not working.

Re: Show HN: Pure JavaScript P2P file sharing in the browser

#29
post #3
post #2

Looks like the future of file sharing. Just waiting for the day when all the browsers would start supporting it.

this is exciting. Only Chrome24 supports it, but sooner all browsers will.

I'm running Chrome 24.0.1312.56, on Mac OS X 10.8.2, yet I still get the alert about unsupported browsers...

Re: Show HN: Pure JavaScript P2P file sharing in the browser

#30

Earlier quoted context omitted.

This currently works only on the latest browsers; like Chrome 24 on the desktop. Its still not 100% stable. Stability and support for other platforms will soon arrive through browsers updates and polyfills.

I am using Chrome 24 on the desktop. Not working.

Not working on Chrome 25 either
Post reply on HN