GitHub Sample Code Issue

Hello,

Just a quick FYI im very new to the milestone universe…but im trying to figure out how to use the milestone sample code.

At the moment, im stuck on the login forum. My server is hosted locally under 192.168.20.133. Im able to access the XProtect Web Client using port 8081. Looking at the network tab in DevTools, i see that im getting CORS error with attempting to connect to either 192.168.20.133 or 192.168.20.133:8081….im also getting a ERR_Connection_Refused on 192.168.20.133:5500.

Is there any pre-configuring that I’m missing? Any assistance would be greatly appreciated.

Knowledge base article: XProtect Mobile Server app on different server (enabling Cross Origin Resource Sharing support)

Thank you for the help.

Besides this, is there any other pre-configuring i need to do?

No, I do not think so. Did you succeed in getting it to work?

No but im shifting gears at this point.

From my understand to access my Mobile Server via its api…I first need to establish my connection in order to obtain my ConnectionID but i keep oon getting mobile server incorrect command format error.

Granted im doing all of my testing on postman for the time being.

The URL that im hitting for mobile server →

http://192.168.20.101:8081/XProtectMobile/Communication

Body (raw text)

You’re on the right track. Taking a closer look at the existing samples in the repository should give you a better understanding of how the login and Mobile Server connection are implemented.