Use the agent-plugin.xml file to configure the rap.service_host and rap.service_port values for a publisher.
In the agent-plugin.xml file, specify the host name of the machine on which the publisher is running and the administration port of the publisher:
<set-property property="rap.service_host" value="hostname" />
<set-property property="rap.service_port" value="admin_port_value" />