How to make Endpoint Central Server use a specific IP Address, if the computer has multiple NICs?

If you have already installed Endpoint Central Agents in some of the computers you manage follow the steps given below. You can either configure the agents manualy or automatically.

Important note :

  1. If you have configured "Failover Server", contact support team before following the steps mentioned below.
  2. Configuring Endpoint Central Server to use a specific IP will make all your Endpoint Central agents communicate with your server only through the configured IP address. Ensure that the specified IP address can be accessed by all your agents.
  3. Specify the Server URL as http://<ipaddress>:8020 at the web console. Do not specify Server URL with machine name, FQDN, "localhost"or any other format.
  4. After configuring the  setup make sure that you open the server console manually.

Manual Agent Configuration

  1. For Windows - Download configureDCAgentServerCommunication.txt and rename it to configureDCAgentServerCommunication.vbs.

    For Mac - Download configureDCAgentServerCommunication_mac.txt and rename it to configureDCAgentServerCommunication_mac.sh.

    For Linux - Download configureDCAgentServerCommunication_linux.txt and rename it to configureDCAgentServerCommunication_linux.sh.

  2. Copy the script to the client computers where the agent is installed.
  3. Open a command prompt/terminal with run as admin/ROOT privilege and execute the command given below:

    For Windows - cscript configureDCAgentServerCommunication.vbs <DCServer IP Address>

    Example: cscript configureDCAgentServerCommunication.vbs 192.168.112.146 

    For Mac - sudo ./configureDCAgentServerCommunication_mac.sh <DCServer IP Address>

    Example: sudo ./configureDCAgentServerCommunication_mac.sh 192.168.112.146 

    For Linux - sudo ./configureDCAgentServerCommunication_linux.sh <DCServer IP Address> 

    Example - sudo ./configureDCAgentServerCommunication_linux.sh 192.168.112.146  

Automatic Agent Configuration 

You can also automate the above mentioned steps using Endpoint Central Custom Script Configuration using the steps given below. These steps are available only for Windows and Mac users.
  1. After downloading the corresponding script file as given in the above step, add it in Configuration -> Script Repository in the web console with <DCServer IP Address> as argument.
  2. To run this script create a custom script using Endpoint Central Configuration and deploy it.
  3. To verify if all agents have communicated with the server, follow the steps given below,
    • Open web console, select Admin -> Scope of Management -> computers and using filters, check last contact time of agent.
If the computer running Endpoint Central has multiple Network Interface Cards (NICs) and if you wish to restrict the communication of Endpoint Central Server to a specific IP address, follow the steps below:
  1. Login to Web Console and select Admin --> Agent settings
  2. Specify the Server IP Address. 
  3. Disable "Automatically detect and save the IP Address change" option and click Save.

    Note: Ensure that the above steps are done correctly else the agent server communication would fail.

  4. Stop Endpoint Central Server using Start --> Programs --> ManageEngine Endpoint Central --> Stop Endpoint Central
  5. Open the wrapper-user.conf file located in <Desktop_Central_Install_Dir>\conf in a text editor
  6. Assign -Dbindaddress="<IP_Address>" in wrapper-user.conf.   
    Example : wrapper.java.additional.15=-Dbindaddress="XXX.X.X.X" (or) wrapper.java.additional.16=-Dbindaddress="XXX.X.X.X"
  7. Delete ws.modtime file located in <Desktop_Central_Install_Dir>\conf>
  8. Start the Endpoint Central server.