Astha Sharma wrote:Hi,
My Jersey web service url is working fine when I am accessing it from pc's or emulator's browser. But it is not getting accessed from real Android device browser.
This is the url-
http://192.168.0.107:8080/KommaaropmetjeaanbiedingWebServices/jaxrs/services
Please tell me what can be the reason? What I have to do to access it from actual device?
That URL would only be accessible from inside your own network: the 192.168.0.107 is an IP address assigned by your local network's router. Your phone would only be able to connect to it if it is on WiFi and on the same network (the phone's IP address should also start with 192.168.0.nnn).
If the phone is on the telco data network, or you want the application accessible from the internet as a whole you will need to:
1) Find out your external IP address
2) Setup your firewall to forward port 8080 to the correct local IP
3) Use the external IP address for the connection.