Please refer to these screenshots Image[Behind NAT] -- Image[Same Network] -- Image[Stuns]
Guys I have implemented step-05 code sample from WebRTC's codelab. I have provided 5 google's stun servers and fortunately the code worked as expected(not using TURN). I was able to form p2p comm. between two clients behind NAT and I tested thoroughly everything was working fine behind NAT !! but after few more attempts of trial the same code and ICE server configuration stopped responding. I am not able to see remote stream anymore.Even after restarting droplet and my networking devices.
The strange part is that when I again switch to my WiFi(local network) then the streams start coming. Since I have not changed the code and tested the system behind NAT for 8 times,not able to catch the problem. What should be the reason ? I am sure it's a ICE Server issue either google stuns flagged my host(app. server ip) or a premium stun/turn server is required.
please advise .. what you think !!
Code reference: https://codelabs.developers.google.com/codelabs/webrtc-web/#7
Architecture:
Signaling host: NodeJs https(self signed) running at port 8080 at DigitalOcean