简体   繁体   English

如何配置iis,以便可以从远程Windows pc连接到iis托管的localhost

[英]how to configure iis so that I can connect to my iis hosted localhost from a remote windows pc

there must be a load of questions on this but I cant get it working. 对此肯定有很多问题,但我无法解决。 I have a asp.net app running locally hosted within iis (windows 8/ version 6.2) which I can browse locally. 我有一个可以在本地浏览的iis(Windows 8 / 6.2版)中本地运行的asp.net应用程序。 Example below, and it works without a problem. 下面的示例,它可以正常工作。

  http://localhost:1234

I'm trying to browse this site from a windows virtual machine using remote desktop and then launching the browser on the client machine. 我试图使用远程桌面从Windows虚拟机浏览此站点,然后在客户端计算机上启动浏览器。 Unfortunately this display "Internet Explorer cannot display the webpage" 不幸的是,该显示“ Internet Explorer无法显示该网页”

any ideas why I cant get through on a remote desktop? 任何想法为什么我无法通过远程桌面? The client has internet access obviously and I can ping the other machine (both ways). 客户端显然可以访问互联网,我可以ping通另一台机器(两种方式)。 Is there an IIS or firewall setting I can configure. 是否可以配置IIS或防火墙设置。 The firewall on the dev box (ie the web server in this situation) has a firewall switched on. 开发箱上的防火墙(在这种情况下为Web服务器)已打开防火墙。 When I turn it off I still get the same error message. 当我关闭它时,我仍然收到相同的错误消息。

My iis authenication settings are shown below (for my website, not for the 'Default Web Site'): 我的iis身份验证设置如下所示(对于我的网站,不是“默认网站”):

在此处输入图片说明

On the client machine, I'm using the following: 在客户端计算机上,我正在使用以下内容:

  http://12.34.56.78:1234

Thanks, James 谢谢,詹姆斯

Try using https: instead of http: and also to access the website from other PC, you need to enable your Anonymous Authentication. 尝试使用https:而不是http:并从其他PC访问该网站,您需要启用匿名身份验证。 And you also need to Enable the Directory Browsing from IIS settings of website. 而且,您还需要从网站的IIS设置中启用目录浏览。

Can you ping the ip? 你能ping IP吗? Disable the firewall on both machines and try. 禁用两台计算机上的防火墙,然后尝试。

Let me know 让我知道

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

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