set IP properly