lifx.js
function getMyIPs() {
	var ips = [];
	var ifs = os.networkInterfaces();
	for (var i in ifs) {
		for (var j in ifs[i]) {
			ips.push(ifs[i][j].address);
		}
	}
	return ips;
}
function getMyIPs() {
	var ips = [];
	var ifs = os.networkInterfaces();
	for (var i in ifs) {
		for (var j in ifs[i]) {
			ips.push(ifs[i][j].address);
		}
	}
	return ips;
}
function getMyIPs ( ) { var ips = [ ] ; var ifs = os . networkInterfaces ( ) ; for ( var i in ifs ) { for ( var j in ifs [ i ] ) { ips . push ( ifs [ i ] [ j ] . address ) ; } } return ips ; }
Utility method to get a list of local IP addresses
Utility method to get a list of local IP addresses