Code to demonstrate P2P resource discovery and file sharing setup