# Agent Installation - Knowledge base ## Changing Endpoint Central Server's Name/IP/Port Details in Agent ### Problem Agents not communicating with the server after migration. ### Cause The new server details like FQDN, IP, Port numbers are not available with the agent. ### Resolution Changing the following details in the Endpoint Central Agents: - The Name or the IP Address of the Endpoint Central Server - The HTTP and HTTPS ports that are used by the Endpoint Central Agents to communicate with the Server - The mode of the communication as HTTP or HTTPS To change the values, either a GPO or a cscript can be used. This page explains about using cscript/commands to achieve the same. [Learn about using GPO to inform agents about new server details.](https://www.manageengine.com/products/desktop-central/migrated-server-details-gpo.html) ### Steps: 1. **For Windows** – Download the [configureDCAgentServerCommunication.txt](https://www.manageengine.com/products/desktop-central/configureDCAgentServerCommunication.txt) and rename it to `configureDCAgentServerCommunication.vbs`. **For Mac** – Download the [configureDCAgentServerCommunication_mac.txt](https://www.manageengine.com/products/desktop-central/configureDCAgentServerCommunication_mac.txt) and rename it to `configureDCAgentServerCommunication.sh`. **For Linux** – Download the [configureDCAgentServerCommunication_linux.txt](https://www.manageengine.com/products/desktop-central/configureDCAgentServerCommunication_linux.txt) and rename it to `configureDCAgentServerCommunication.sh`. 2. Copy the script to the client computers where the agent is installed. 3. Open a command prompt/terminal. 4. To execute the script for Mac & Linux agents, add executable permission by running the command: ```bash chmod +x configureDCAgentServerCommunication.sh ``` 5. Execute the command given below: **For Windows** ```bash cscript configureDCAgentServerCommunication.vbs ``` Example: ```bash cscript configureDCAgentServerCommunication.vbs joe.manageengine.com 192.168.112.146 8020 8383 https ``` **For Mac** ```bash sudo ./configureDCAgentServerCommunication.sh ``` Example: ```bash sudo ./configureDCAgentServerCommunication.sh joe.manageengine.com 192.168.112.146 8020 8383 https ``` **For Linux** ```bash sudo ./configureDCAgentServerCommunication.sh <'http'/'https'> ``` Example: ```bash sudo ./configureDCAgentServerCommunication.sh joe.manageengine.com 192.168.112.146 8020 https ``` **Applies to:** Server Migration, Agent-Server Communication **Keywords:** Update Server Details, Agent-Server Communication