title: Uncaught ReferenceError: GetObject is not defined in chrome
body: <p>I am trying this <a href="http://codingresource.blogspot.com/2010/02/get-client-mac-address-ip-address-using.html" rel="nofollow noreferrer">LINK</a> if it is working. I try to debug it in <code>JSFiddle</code> and <code>JSBin</code> using <code>Chrome v55</code> and <code>IE v7</code>. I know that this is impossible Cuz I read some links before I make this thread. Is there any alternative way for this kind of problem on how to get the mac address of pc?.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script type="text/javascript"&gt;
      var macAddress = "";
      var ipAddress = "";
      var computerName = "";
      var wmi = GetObject("winmgmts:{impersonationLevel=impersonate}");
      e = new Enumerator(wmi.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True"));
      for(; !e.atEnd(); e.moveNext()) {
          var s = e.item(); 
          macAddress = s.MACAddress;
          ipAddress = s.IPAddress(0);
          computerName = s.DNSHostName;
      } 
  &lt;/script&gt;
  &lt;input type="text" id="txtMACAdress" /&gt;
  &lt;input type="text" id="txtIPAdress" /&gt;
  &lt;input type="text" id="txtComputerName" /&gt;
  
  &lt;script type="text/javascript"&gt;
      document.getElementById("txtMACAdress").value = unescape(macAddress);
      document.getElementById("txtIPAdress").value = unescape(ipAddress);
      document.getElementById("txtComputerName").value = unescape(computerName);
  &lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>