I have actually followed this WebRTC codelab (https://codelabs.developers.google.com/codelabs/webrtc-web/#7), but get stuck when needing to use STUN or TURN servers. I run the node on my Ubuntu server, tried ports 3434, 8080, etc.
Usually I get either error: “ICE failed”, or “Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://computeengineondemand.appspot.com/turn?username=41784574&key=4080218913. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).”
According to the latter one, I have enabled “A2enmod headers” and set this to apache.conf “Header always set Access-Control-Allow-Origin "*" “
The issue persists. My STUN server is “ 'url': 'stun:stun.l.google.com:19302' that should work most of the time, but I never have succeeded to pair devices which do not share the same network.
Any suggestions how to proceed from here