nœud js obtient ip ipv4

var os = require('os');

var networkInterfaces = os.networkInterfaces();

console.log(networkInterfaces);
Tomer Mantzuri