Refine IP config