Reputation: 423
I'm using eclipse to run a web service written in Java EE. So the service is launched on the local network (192.168.1.1 something like that). My Android device, connected to the computer, is connected to the WiFi. My question is : is it possible to access the web service from my Android device without publishing the service on a server ? (I cannot access it via http:// 192.168.1.1:8080/myWebService/... Because i'm not n the same network)
I've tried to use the computer network while my device is connected to it but it's seems not to be possible with Windows 7.
Upvotes: 0
Views: 324
Reputation: 28809
As i mentioned in the comments, you have to use the IP
of the computer which has the server.
Upvotes: 2
Reputation: 132
I too had the same problem.If u want to access localhost from your device,here is a good tutorial: http://www.mobitechie.com/android-2/how-to-access-localhost-on-android-over-wifi/
Upvotes: 0