HTTP Status 403 ΓÇô Forbidden

I’m able to call API from postman using localhost url (http://localhost:8686/openmrs/ws/rest/v1/location?tag=Login%20Location) but not from react-native mobile application. I’m changing the localhost with my computer’s ip address while calling api from mobile device. Also not able to call api in another computer using my ip address but able to access the openmrs webpage i.e. http://192.168.1.xx:8686/openmrs/login.htm

Getting below error while calling api from mobile application and in another computer’s postman: ‘HTTP Status 403 ΓÇô Forbidden’ ‘IP address (of my mobile device) is not authorized’ ‘The server understood the request but refuses to authorize it.’ ‘Apache Tomcat/8.5.16


Here is the screenshot of error while calling from another computer’s postman. Please help me to solve this issue as soon as possible.

I think you need to define the IP address of your server in host binding.