code: function DetectLocalIPAddress(callback, stream) {
          if (!DetectRTC.isWebRTCSupported) {
              return;
          }
  
          var isPublic = true,
              isIpv4 = true;
          getIPs(function(ip) {
              if (!ip) {
                  callback(); // Pass nothing to tell that ICE-gathering-ended
              } else if (ip.match(regexIpv4Local)) {
                  isPublic = false;
                  callback('Local: ' + ip, isPublic, isIpv4);
              } else if (ip.match(regexIpv6)) { //via https://ourcodeworld.com/articles/read/257/how-to-get-the-client-ip-address-with-javascript-only
                  isIpv4 = false;
                  callback('Public: ' + ip, isPublic, isIpv4);
              } else {
                  callback('Public: ' + ip, isPublic, isIpv4);
              }
          }, stream);
      }
docs: via: https://github.com/diafygi/webrtc-ips