add restoreIpAddresses.cpp