adding ipaddress fetch function