从连接Android设备到本地主机 [英] Connect to localhost from android device

查看:213
本文介绍了从连接Android设备到本地主机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经搜索该主题,仍然不知道如何使它工作:(
我有一个SOAP Web服务(ASP.NET),而这个地址(在我的本地)是的http://本地主机: 50473 / Service1.asmx的

i have already search this topic and still don't know how to make it work :(
I have a SOAP web service (ASP.NET), and this address (on my localhost) is http://localhost:50473/Service1.asmx

然后我有我的Andr​​oid设备上的SOAP客户端,我想连接到服务器,从使用的服务。 很多人说,我无法通过USB电缆连接,和我有连接到相同的WiFi网络,并使用内部IP。
好了,现在我的笔记本电脑和Android设备均连接到WiFi网络,
我的笔记本电脑有192.168.43.17
我的Andr​​oid设备有192.168.43.26

then i have soap client on my android device, i want to connect to use service from server. Many people said that i can't connect through usb cable, and i have to connect to the same wifi network and use the internal IP.
Ok, now my laptop and android device both connect to the wifi network,
my laptop got 192.168.43.17
my android device got 192.168.43.26

那么,如何才能将设备连接到SOAP服务器上面?
从我的设备,我使用192.168.43.17:50473/Service1.asmx但没有运气:(

So how can the device connect to the SOAP server above ?
from my device, i use 192.168.43.17:50473/Service1.asmx but no luck :(

推荐答案

您需要设置的用途,权限 - 的 android.permission.INTERNET对在AndroidManifest.xml中也测试在网络浏览器(http://192.168.43.17:50473/Service1.asmx)URL。

You need to set uses-permission - android.permission.INTERNET in AndroidManifest.xml and also test that (http://192.168.43.17:50473/Service1.asmx) url on web-browser.

这篇关于从连接Android设备到本地主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆