node js mendapatkan ipv4 ip

var os = require('os');

var networkInterfaces = os.networkInterfaces();

console.log(networkInterfaces);
Tomer Mantzuri