从网络上的另一台计算机访问iis本地主机路径 [英] accessing an iis localhost path from another computer on the network

查看:73
本文介绍了从网络上的另一台计算机访问iis本地主机路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2015中有一个Web应用程序项目.我使用 http://localhost/WebApplication1 URL.我可以使用上面的url从我的计算机访问该项目,但是我无法从将其直接连接到该计算机的另一台计算机访问.

I have a web application project in visual studio 2015. and i built it on Local iis with http://localhost/WebApplication1 URL. i can access to the project from my computer with above url but i can not access from another computer that i directly connected it to this.

我检查这些:

1.I can share folders from these computers.
2.I make a rule in firewall for port 80 inbound
3.I checked vs debug remote allowed in firewall
4.I checked "ping localhost" and it received ping

我将Windows 10与iis Express 6一起使用

I use windows 10 with iis express 6

推荐答案

IIS Express的主要目的是仅处理用于调试和开发目的的本地请求.尽管可以打开并通过一些调整向您的站点提供外部请求.

IIS Express was primarily designed to only process local requests for debug and development purposes. Though one can open it up and provide external requests with your site with a few tweaks.

在位于%userprofile%\ documents \ iisexpress \ config 的文件 applicationhost.config 中,将您的 localhost 更改为 *甚至是您的计算机名称.

In the file applicationhost.config which resides at %userprofile%\documents\iisexpress\config change your localhost to * or even the name of your machine.

否则为什么不安装IIS而不是允许对网站进行更多调整的IIS?

Otherwise why not install IIS which allows for more tweaking of the site than express?

如何在Windows 8上安装IIS或Windows 10

这篇关于从网络上的另一台计算机访问iis本地主机路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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