I am new to webservices and I am creating an android application that will send and recieve data from a webservice. I have created a REST webservice in Eclipse using Java. I have used Tomcat server. I am running the webservice on my localhost (Dell laptop with Windows 10 OS).
When i am running the webservice and providing data on my localhost, the service is Returning JSON data successfully but when I am trying to access the same service from my smartphone's chrome browser, its showing ERR_CONNECTION_TIMED_OUT.
Note: Both devices are connect to same network. (I am using MTS blaze)
Things I have tried till now,
- Enabled ICMP in firewall settings
- Turned off firewall
- Uninstalled Mcafee
But no success. Let me know if more information is required to solve this issue.
Edit1: Url on localhost: localhost:8080/Credentials/register/doregister?user=abc&pass=efg
Url when accessing from smartphone: 192.168.1.100/Credentials/register/doregister?user=abc&pass=efg