Proxy for dynamic binding, peer management and local network discovery using WebSockets