EricssonResearch / openwebrtc

A cross-platform WebRTC client framework based on GStreamer
http://www.openwebrtc.org
BSD 2-Clause "Simplified" License
1.8k stars 537 forks source link

TURN server not working ios/android to ios/android. Works Browser to Android. #543

Open carterbryden opened 8 years ago

carterbryden commented 8 years ago

We can't seem to get either Android or iOS working with Turn servers based on the examples, with the exception of Android to Browser. Chrome/FF to Chrome/FF TURN connections are working fine.

We've replaced the iOS code here with our own TURN server details:

https://github.com/EricssonResearch/openwebrtc-examples/blob/master/ios/NativeDemo/NativeDemo/NativeDemoViewController.m#L74

And on Android we've added:

mHelperServerList.add(new RtcConfig.HelperServer(HelperServerType.TURN_UDP, Config.TURN_SERVER, 80,"username","password"));

It seems like when we do mobile to mobile it tries to use relay (on cell connections, which we've used to test TURN) but never connects. Browser to browser on cell works perfectly every time over TURN relay, and Android to browser also works.

Any help would be much appreciated. We'd be happy to make a pull request with any fixes if we can get on the right path.

carterbryden commented 8 years ago

We've ended up going with a hybrid approach on Android that uses a webview to load html, js, css from the server. Works much better than native so far. The issue still persists on both platforms natively though.

alessandrod commented 8 years ago

Hi. Sorry for the late reply, I'm now looking into TURN support to make it more solid.

Can you run your tests with the env variables G_MESSAGES_DEBUG=libnice NICE_DEBUG=all set and attach the output here?

alagarsamy101189 commented 7 years ago

turn server support for android is ready ?. And also this is not connected in different network for android to android. Android to web also have some error. Android to android same network only get connected.. pls reply....