Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

webRTC to setup signaling server

Tags:

webrtc

how to setup a signaling server for webRTC when the system are connected in Local Area Network? Its mandatory that we must use STUN and TURN server for signaling?

like image 693
Venkatesh Avatar asked Jan 25 '14 18:01

Venkatesh


2 Answers

To make WebRTC run on LAN, you will require to have a signaling server in that LAN. A signaling server is any web server that will allow your web clients to exchange the SDP offer/answer and ICE candidates that are generated by the WebRTC PeerConnection. This can be done using AJAX or WebSockets.

I have listed some top sources for information about WebRTC. Please go through some of the links on that page to better understand how the WebRTC signaling works.

You will not require a STUN/TURN server as your WebRTC clients (i.e. Web Browser) will be in the LAN and accessible to each other. FYI... STUN/TURN servers are not part of the signaling but part of the media leg and usually required for NAT traversals of media.

like image 108
Deep Pai Avatar answered Sep 28 '22 07:09

Deep Pai


Webrtc needs some kind of signalling system for initial negotiation.. like transferring SDP, ICE-candidates, sending and receiving offers etc... rest is done by peer-peer connection. For initial signalling you can use any technique like sending AJAX calls, using socket.io etc.

STUN and TURN servers are required for NAT traversal, NAT traversal is important because it is needed for determining the path between peers. You can use google provided STUN/TURN server address stun:stun.l.google.com:19302 etc , or you can configure your own turn server by using rfc-5766 turn server

like image 44
Ichigo Kurosaki Avatar answered Sep 28 '22 07:09

Ichigo Kurosaki