Can HTML5 Websockets connect 2 clients (browsers) directly without using a server? (P2P) [duplicate]

No

Already answered here for more details: Do websockets allow for p2p (browser to browser) communication?

Update:

The WebRTC protocol and API is making rapid progress and allows a Data Channel to be established between two peers (you still may need a STUN/TURN server for the initial NAT traversal and setup).

Leave a Comment