Reputation: 2098
If WebRTC connection is established between two peers in local network, can we maintain it, after losing connection to the internet? It seems possible, as it's peer-to-peer.
Upvotes: 5
Views: 1897
Reputation: 3751
Yes, it is possible. The peers connect directly using the private ip-address in the same network. They do not need to go through the public IP address, which will require internet.
Upvotes: 6
Reputation: 749
Even after loosing internet connectivity, the connection is maintained for a certain time. I believe this may be some internal socket timeout. A simple experiment on https://apprtc.appspot.com/ gave the timeout to be around 15-20 seconds.
Upvotes: 0