title: Implementing our own STUN/TURN server for WebRTC Application
body: <p>I am working on a webrtc application and have to implement following TURN server.</p>
  
  <p><a href="https://code.google.com/p/rfc5766-turn-server/" rel="noreferrer">https://code.google.com/p/rfc5766-turn-server/</a></p>
  
  <p>I am following this tutorial.</p>
  
  <p><a href="http://www.dialogic.com/den/developer_forums/f/71/t/10238.aspx" rel="noreferrer">http://www.dialogic.com/den/developer_forums/f/71/t/10238.aspx</a></p>
  
  <p>and it says to reference the TURN server as follows, in javascript code where RTCPeerConnection is created.</p>
  
  <pre><code>var pc_config = {"iceServers": [{"url": "stun:stun.l.google.com:19302"},
    {"url":"turn:&lt;turn_server_ip_address&gt;", "username":"my_username", "credential":"my_password"}]};
  
  pc_new = new webkitRTCPeerConnection(pc_config);
  </code></pre>
  
  <p>I am little confused, why are we referencing to Google's public STUN server. I thought RFC5766 TURN server has STUN inside it.</p>
  
  <p>Is RFC5766 only TURN server? and not STUN server? Can't we implement our own STUN server rather using one provided by Google?</p>
  
  <p>Sorry for such naive question. I am new to WebRTC.</p>
  
  <p>Thanks.</p>