简体   繁体   English

Android设备可以看到WCF主机吗?

[英]Can Android device see WCF host?

I would like to know if an android device can see the WCF host ? 我想知道一个Android设备是否可以看到WCF主机?

I can't call my WCF service with the localhost (10.0.2.2) adress. 我无法使用本地主机(10.0.2.2)地址调用WCF服务。

But when I call my WCF in browser I have this : 但是,当我在浏览器中调用WCF时,我得到了:

<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">Test done !</string>

If it's normal, I think it's the anwser for this question : WCF used in Android Project (FileNotFoundException) 如果正常,我认为这是该问题的答案: Android项目中使用的WCF(FileNotFoundException)

Browser this you use to call WCF service is simulator browser or PC browser? 您用来调用WCF服务的浏览器是模拟器浏览器还是PC浏览器?

If you use simulator by Genymotion then ip address of your WCF service(run on your PC) must be 10.0.3.2 . 如果您通过Genymotion使用模拟器,则WCF服务(在PC上运行)的IP地址必须为10.0.3.2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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