get IPV4 according to the network interfaces