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

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

问题描述

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

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

在一台机器上,我有一个用 IIS7 托管的站点.我在 HOSTS 文件中添加了一个条目,而不是标准的 localhost/index.htm 地址,将本地 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.

在 win 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)

<小时>

  • 因为出站流量(从服务器到外部世界)默认是允许的.这意味着例如网络服务器发送回外部用户的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

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

      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天全站免登陆