restore ip addresses

an ugly solution