Adding find ip function