Get IP address from ifconfig