在Visual Studio2015中调试我的网站后,我可以通过localhost:50544访问它.我想在另一台计算机上访问我的网站,该计算机也在同一网络上.为此,我应该能够访问计算机地址192.168.1.13:50544.
然而,当访问这个地址时,我收到一个"错误的请求,无效的主机名"错误.即使我在网站服务的同一台机器上访问它.
按照建议here,我创建了以下windows防火墙规则,并try 完全关闭防火墙.
我使用的是IIS express,因此添加到了‘~\Documents\IISExpress\config\applicationhost.config’文件中
<binding protocol="http" bindingInformation=":8080:localhost" /> //original rule
<binding protocol="http" bindingInformation="*:50544:192.168.1.13" />
但是在任何机器上访问192.168.1.13:50544仍然会导致"请求错误"错误.