You can set the environment variable APPDYNAMICS_CONTROLLER_HOST_NAME in the Environment variables of the machine (or process) like any other environment variable. This will override the JSON values that are set.
Linuxexport APPDYNAMICS_CONTROLLER_...
Check the controller-info.xml and make sure the controller, port, and account access key are set to the correct values. Perhaps share the exact log message as well.