I tried disconnecting the wifi after couple of messages. It is not working. It needs server always it seems.
senthil,
http://mocdoc.in
If so, you still need wifi for the connection between them, The cool thing about PeerJS is that the data goes directly between the computers (A <--> B) without a server in between (A <--> S <--> B).