简体   繁体   中英

Eclipse web service and Android device

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.

正如我在评论中提到的,你必须使用具有服务器的计算机的IP

我也有同样的问题。如果你想从你的设备访问localhost,这是一个很好的教程: http//www.mobitechie.com/android-2/how-to-access-localhost-on-android-over -无线上网/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM