从连接Android设备到本地主机

编程入门 行业动态 更新时间:2024-10-08 08:32:17
本文介绍了从连接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 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中也测试在网络浏览器(192.168.43.17:50473/Service1.asmx)URL。

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

更多推荐

从连接Android设备到本地主机

本文发布于:2023-11-26 21:38:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1635289.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:主机   设备   Android

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!