How to debug and check when our use stun and turn server.

879 views
Skip to first unread message

viet dinh

unread,
Jun 19, 2014, 4:59:44 AM6/19/14
to eas...@googlegroups.com
Hi,
I finish setup my turn server(use RFC 5766 Turn Server) to use in my easyrtc app. 
But how to debug/show log that when my app connect success or fail with STUN/TURN server.
An any option tof setting to let my app only use TURN server to transfer data (not use P2P).
Thanks, 
 

Eric Davies

unread,
Jun 19, 2014, 7:26:30 AM6/19/14
to eas...@googlegroups.com
Hi,

On the client side:
If you are using Chrome on both ends, you can use the peer connection statistics to find out whether your connection is using a turn server.  See the thread: https://groups.google.com/forum/#!searchin/easyrtc/turn$20server/easyrtc/hj5YQUgMu6w/3WDEGxJdN6MJ
If you are using Firefox, I'm not aware of a way to check.

On the server side, there isn't much you can do without issuing unique turn server ids and checking the logs of the turn server afterwards because the communication negotiation is handled on the client side.

If two peers aren't separated by firewalls or routers implementing NAT, they will always use peer-to-peer. Otherwise, you can try simply not including any stun servers in your ice configuration. 

Eric.

viet dinh

unread,
Jun 19, 2014, 8:50:27 PM6/19/14
to eas...@googlegroups.com
thank you Eric, you help me very much. I will try now.
Reply all
Reply to author
Forward
0 new messages