Replace agent to server.