I can login with http://192.168.0.152:8081. But I cannot login http://192.168.0.152/ServerAPI/ServerCommandService.asmx with same username and password. Should I create another user for ServerCommandService?

Can you please see this page? It might be helpful for you.

https://doc.developer.milestonesys.com/html/index.html?base=gettingstarted/intro_soap_protocols.html&tree=tree_3.html

Thanks for your reply. But the sample code of https://doc.developer.milestonesys.com/html/index.html?base=gettingstarted/intro_soap_protocols.html&tree=tree_3.html is C#. Could you provide sample code in C++?

The protocol samples are all C# but being protocols it is Milestone’s hope that you can transfer the code to your favorite language and environment.