the project could be done using JXTA, which is a new set of open protocols meantfor connected devices on a network to communicate via P2P.a good starting point would be www.jxta.org.In fact i am working on a similar project.