Is there any possible way to have browsers communicating to each other over lan/wan without the use of a server (direct peer-to-peer)?
Browser-to-Browser Communication Using Data Channel Similar to a conventional browser-to-browser communication, Sonus WebRTC allows you to communicate with other WebRTC users through data channel. The data transmission is carried out through data channels without interacting with any web servers.
Even if based on a peer-to-peer protocol, WebRTC connections can't run without a server. In order for two devices to locate one another, a discovery and negotiation mechanism called signaling must take place.
Does WebRTC Need a Server? WebRTC can easily connect two browsers on a local area network. However, WebRTC and browsers alone aren't capable of connecting through the internet. WebRTC needs a server to handle tasks like getting through firewalls and routing data outside of your local network.
The only way you can currently get a web browser to talk directly to another is by using STUN/TURN/ICE servers. The browser needs one of these servers in order to make the initial handshake.
Looks like there may be hope on the horizon: http://www.w3.org/TR/webrtc/
Yes you can try http://httprelay.io with the AJAX calls. It is simple as that:
* Send data: POST https://demo.httprelay.io/link/your_secret_channel_id
* Receive data GET https://demo.httprelay.io/link/your_secret_channel_id
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With