getting ip addressess for all devices on network