update getclientip method