Change network according to server address