Add new method to restore ip address