I am trying to run the webRTC code which i have mentioned below, it is working fine when i am connecting with two devices using same network. But it is not connecting when the devices are in different networks and i am getting DOM Exception. please help me to fix it.
Asked
Active
Viewed 6,408 times
1 Answers
0
It seems like you need a TURN-Server. (CoTurn for example). The traffic will be relayed if a direct connection is not possible (NAT, Firewall,...)

Polaris
- 712
- 7
- 21
-
Thanks for the answer. – rupesh sripuram Sep 26 '18 at 12:35
-
we added the TURN server but still we are getting this error DOMException: Failed to set local answer sdp: Called in wrong state: kStable please do needful – rupesh sripuram Sep 26 '18 at 13:03
-
Have a look at this: https://stackoverflow.com/questions/48963787/failed-to-set-local-answer-sdp-called-in-wrong-state-kstable – Polaris Sep 26 '18 at 13:07