updated Get ip script