Karol Klepacki
Karol Klepacki

Reputation: 2098

Is it possible to maintain WebRTC connection after disconnecting from the internet after signalling phase?

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

Answers (2)

notnotundefined
notnotundefined

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

Obscure Geek
Obscure Geek

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

Related Questions