a P2P server and P2P agent running in client/device