在网络上的其他计算机上查看我的IIS托管站点 [英] Viewing my IIS hosted site on other machines on my network

查看:102
本文介绍了在网络上的其他计算机上查看我的IIS托管站点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在家里,我有一个简单的网络设置,其中包含2台计算机.

At home I have a simple network setup containing 2 machines.

在一台计算机上,我有一个由IIS7托管的站点.我没有在标准localhost/index.htm地址中添加一个条目,而是在HOSTS文件中添加了一个条目,将本地IP(127.0.0.1)指向该域-www.mysite.dev.

On one machine i have a site hosted with IIS7. Rather than the standard localhost/index.htm address I have added an entry in the HOSTS file pointing the local IP (127.0.0.1) to this domain - www.mysite.dev.

我可以使用www.mysite.dev正常访问该网站.

I can access the site with www.mysite.dev with no problem.

我想做的是能够从网络上的其他计算机上查看此站点.

what I would like to do is be able to view this site from my other machine on the network.

最初,我认为可以使用这样的URL来完成此操作 MACHINE-NAME/www.mysite.dev,但是连接总是超时.但是我可以ping MACHINE-NAME没问题.

Initially I assumed this could be done with a URL like so MACHINE-NAME/www.mysite.dev, but the connection always times out. But I can ping MACHINE-NAME without problems.

出于测试目的,我在两台计算机上都禁用了Windows防火墙,但并不高兴.

For testing purposes I have disabled the windows firewall on both machines but to no joy.

像典型的Web开发人员一样,我的硬件/网络技能也很差.

Like a typical web developer, my hardware/network skills are pretty poor.

谁能看到我要去哪里错了?

Can anyone see where I'm going wrong?

推荐答案

正如其他人所说,您的防火墙需要配置为 TCP端口80 接受传入呼叫.

As others said your Firewall needs to be configured to accept incoming calls on TCP Port 80.

赢7+(简单的巫术方式)

in win 7+ (easy wizardry way)

  1. 转到具有高级安全性的 windows防火墙
  2. 入站规则->操作->新规则
  3. 选择预定义单选按钮,然后选择最后一项- 万维网服务(HTTP)
  4. 单击下一步",保留原样的下一步( 连接)
  1. go to windows firewall with advance security
  2. Inbound Rules -> Action -> New Rule
  3. select Predefined radio button and then select the last item - World Wide Web Services(HTTP)
  4. click next and leave the next steps as they are (allow the connection)


  • 由于默认情况下允许从服务器到外部的出站流量(例如,从服务器到外部),这意味着例如,Web服务器正在发回外部用户的http响应并请求


    • Because outbound traffic(from server to outside world) is allowed by default .it means for example http responses that web server is sending back to outside users and requests

      入站流量(从外部世界发送到服务器)默认情况下被阻止,就像来自其浏览器的用户Web请求无法访问网络一样服务器默认情况下,您必须打开它.

      But inbound traffic (originating from outside world to the server) is blocked by default like the user web requests originating from their browser which cannot reach the web server by default and you must open it.

      您还可以在此页面

      这篇关于在网络上的其他计算机上查看我的IIS托管站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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