简体   繁体   English

无法从主机(运行IIS 6)访问Web服务(asmx)

[英]Cannot access Web Service (asmx) from host machine (running IIS 6)


I have simple web service (asmx) running on my PC using port 7778. I've assigned the app pool (v2), port forwarded 7778 on my router to resolve to my local IP address (192.168.1.2) that I've set up manually (static local ip address). 我在PC上使用端口7778运行了简单的Web服务(asmx)。我已分配了应用程序池(v2),路由器上的端口转发了7778,以解析为我设置的本地IP地址(192.168.1.2)手动设置(静态本地IP地址)。 I've also used NoIP's service for DNS and this is checking if my non static real Ip address changes. 我还使用了NoIP的DNS服务,它正在检查我的非静态真实Ip地址是否更改。 when I try to connect to: 当我尝试连接到:
http://mynoipdnsname.no-ip.biz:7778/Service1.asmx from any computer outside my local network It's all working, using: 从本地网络以外的任何计算机上http://mynoipdnsname.no-ip.biz:7778/Service1.asmx都可以正常工作,使用:
localhost:7778/Service1.asmx or 本地主机:7778 / Service1.asmx或
192.168.1.2:7778/Service1.asmx from my local PC works fine. 我本地PC上的192.168.1.2:7778/Service1.asmx正常工作。 The problem is that when I try: 问题是当我尝试:
http://mynoipdnsname.no-ip.biz:7778/Service1.asmx http://mynoipdnsname.no-ip.biz:7778/Service1.asmx
from my local computer (192.168.1.2) it's not getting the data. 从我的本地计算机(192.168.1.2)无法获取数据。 I have Android app, when I try to add web service's url: 当我尝试添加网络服务的网址时,我有Android应用:
http://mynoipdnsname.no-ip.biz:7778/Service1.asmx I get error message: http://mynoipdnsname.no-ip.biz:7778/Service1.asmx我收到错误消息:

Unable to connect to the remote server No connection could be made because the target machine actively refused it 无法连接到远程服务器由于目标计算机主动拒绝连接,因此无法建立连接

Any ideas what I've missed? 有什么想法我错过了吗? Thanks in advance. 提前致谢。

PS My windows firewall and router firewall are turned off. PS我的Windows防火墙和路由器防火墙已关闭。

将mynoipdnsname.no-ip.biz添加到您的主机文件或DNS。

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

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