code: function getOwnIpAddresses() {
      // enumerate interfaces
      var net = os.networkInterfaces();
      var addresses = Object.keys(net)
          // flatten the array structure
          .map(function (k) { return net[k]; })
          .reduce(function (prev, cur) { return prev.concat.apply(prev, cur); }, [])
          // only use external IPv4 ones
          .filter(function (add) { return !add.internal && add.family === "IPv4"; })
          // extract address as number array
          .map(function (k) { return k.address.split(".").map(function (num) { return +num; }); })
          // ignore unconnected ones
          .filter(function (add) { return add[0] !== 169; })
          // turn the address into a string again
          .map(function (a) { return a[0] + "." + a[1] + "." + a[2] + "." + a[3]; });
      return addresses;
  }
docs: Returns the broadcast addresses for all connected interfaces