Dynamic binding, peer management and local network discovery for Web Sockets