Alex Rivera | Logout

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

Asked 2010-11-25T13:04:41.317
70

Using HTML5 Websockets, can I open a socket directly between 2 clients (browsers) (assuming I know their IP addresses and there are no NAT traversal issues). I want to send some data directly from one browser to another browser, essentially creating a P2P network. Everything I've read so far on the web, websockets are all used to communicate between client and server, but nothing about client to client.

Edit
Report

1 Answer

48

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).

answered 2010-11-26T22:52:30.473

Your Answer