简体   繁体   English

无法从本地IP访问IIS网站

[英]Can't access IIS website from local IP

I have a .Net service hosted on IIS. 我在IIS上托管了.Net服务。 The service was accessible from IP:Port/Service.asmx, until recently when I couldn't access it from IP or System name again but only from Localhost:port/Service.asmx. 可以从IP:Port / Service.asmx访问该服务,直到最近我再也无法从IP或系统名称访问它时,只能从Localhost:port / Service.asmx访问它。 I have pinged the server and it is replying. 我已对服务器执行ping操作,并且正在回复。 I have also confirmed that the local ip is listening on port 80. Really I don't know what is wrong, I have been on this for so long. 我还确认了本地ip正在侦听端口80。确实我不知道出了什么问题,我已经使用了很长时间。

That's a hard one. 那是很难的。 Things I'd try: 我会尝试的事情:

  1. Rebooting system. 重新启动系统。
  2. Set a breakpoint at the earliest part of the request pipeline to verify whether the request is making it into your .Net code 在请求管道的最早部分设置一个断点,以验证请求是否已将其放入您的.Net代码中
  3. Make a browser request via IP for a static file like an image. 通过IP向浏览器请求静态文件(例如图片)。 Is that served? 可以吗? That lets you see if the server will respond for a request that likely isn't going through Asp.Net. 这样一来,您就可以查看服务器是否会响应可能没有通过Asp.Net的请求。

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

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