simple code to get ips for machine consumption