retrieve ip from network card