how to disable hostnames in siteinfo.xml

Hi,

I’m on a LAN where there is no DNS set-up. I’m trying to access to Milestone SDK from another PC.

1st, I am trying to get information about the services avaiiable, so I’m doing a get on the following url:

http://192.168.3.141:80/rcserver/siteinfo.xml

The problem is that it returns :

 <?xml version="1.0" encoding="utf-8" standalone="yes"?><methodresponse><userok>yes</userok><userid>win8-dev\hhervoche</userid><siteinfo protocolversion="1.0.0.0"><site><name>WIN8-DEV</name><id>1185D65D-ED0D-41A7-B8FF-EC5367CC4749</id><description /><lastmodified>28/06/2019 13:36:09</lastmodified><laststatushandshake>28/06/2019 13:36:09</laststatushandshake><connectionstate>Attached</connectionstate><addresses><address url="http://win8-dev/" type="Server" /></addresses><serverversion>13.1.0.1</serverversion><serviceaccount>AUTORITE NT\SERVICE RÉSEAU</serviceaccount><synchronizationstatus>0</synchronizationstatus></site><parent /><childs /></siteinfo></methodresponse>

the adress url field is filled with a name "http://win8-dev/ "instead of the raw IP address (it should be “http://192.168.3.141:80” in my opinion). Is there a way to change it on Milestone settings ?

Maybe I’m doing it wrong and there is a much proper way to get the server address & protocols based on the hostname?

I’m not an expert on this. I know we have the same issue even without using the SDK. Just a plain XProtect Expert/Corp installation requires each computer running any Milestone software to be able to find all the Milestone servers by name, even if you initially tell it the IP of the server. We modify the Windows host file to satisfy this requirement.

Thanks ! You modify for sure the hosts file on the Windows client right ? Not on the Windows running XProtect ?

All of the above. We modify the Windows host file so that the computer can ping by name all XProtect servers (management server and recording servers in our case). This performed on:

-all XProtect clients

-all XProtect servers