title: TURN And STUN Server Credentials
body: <p>I am follwing this <a href="http://www.html5rocks.com/en/tutorials/webrtc/infrastructure" rel="nofollow noreferrer">http://www.html5rocks.com/en/tutorials/webrtc/infrastructure</a> tutorial. This tutorial or discussion is about TURN/STUN servers. And this tutorial add turn and stun server code like below.</p>
  
  <pre><code>{
    'iceServers': [
      {
        'url': 'stun:stun.l.google.com:19302'
      },
      {
        'url': 'turn:192.158.29.39:3478?transport=udp',
        'credential': 'JZEOEt2V3Qb0y27GRntt2u2PAYA=',
        'username': '28224511:1379330808'
      },
      {
        'url': 'turn:192.158.29.39:3478?transport=tcp',
        'credential': 'JZEOEt2V3Qb0y27GRntt2u2PAYA=',
        'username': '28224511:1379330808'
      }
    ]
  }
  </code></pre>
  
  <p>Can i use this credentials to make Web-RTC communication between browsers (on different pcs).  </p>
  
  <p>And ı read this tutorial also <a href="https://stackoverflow.com/questions/22233980/implementing-our-own-stun-turn-server-for-webrtc-application">Implementing our own STUN/TURN server for WebRTC Application</a>. According  to this tutorial when we use turn server for nat and firewalls, using stun server is unnecessary. And this tutorial added this code for stun and turn server.</p>
  
  <pre><code>var pc_config = {"iceServers": [{"url":"turn:my_username@&lt;turn_server_ip_address&gt;", "credential":"my_password"}]};
  
  pc_new = new webkitRTCPeerConnection(pc_config);
  </code></pre>
  
  <p>What is "turn_server_ip_address" or what is "my_password" ? how can ı know this credential ?</p>