changes the ip addres and initial locations