record ip script