One annoying aspect of it, is that my firewall is asking me to allow every single peer connection. Would it be possible to use a single port for UDP that I can whitelist?
Interesting, no one mentioned it when using sharefest, it is possible to tell the STUN server to restrict which udp ports are being used so you can specify 65500-65600 and whitelist them
What firewall you have on your comp that fires that?
If you'd like to learn more checkout Peer5's open source projects [1] for pure p2p file sharing, And [2] for a flexible AJAX api built on top of the same stack.
[1] github.com/peer5/sharefest
[2] github.com/peer5/P2PXHR
Wonder if it can be used to peer-to-peer other stuff, other than file downloads. CDN boosting ? Ajax broadcast content ( e.g. NewsFeeds, live marketing notifications )?
Yeah, for that you would want to use the general purpose API (which is AJAX like). See https://github.com/Peer5/P2PXHR. It's still a little under-documented, so let me know if you're having trouble hacking it...
Yes, that's what you got exactly, but I have to admit that this is quite extreme, and you should not expect to download so much from peers every time...