我试图发布ClickOnce
应用程序并在本地进行测试。我想提供安装链接,因此我需要使用IP地址更新位置,除非我无法安装它(因为localhost
已被翻译成计算机名称并且无法访问)。问题是,在我的IIS
上,我只能通过在地址中使用localhost
来访问我的页面。
IIS - 不能通过ip地址访问页面而不是本地主机
http://localhost:9995/publish/Publish.htm <-- working
http://192.168.1.104:9995/publish/Publish.htm <-- not working (my IP address)
http://my_pc_name:9995/publish/Publish.htm <-- not working
http://127.0.0.1:9995/publish/Publish.htm <-- even that is not working
我使用Windows 7
和Visual Studio 2012
与IIS Express 8.0
,但我想在Visual Studio 2010
相同的,这是ASP.NET server
和还是失败了。我关闭了防火墙。
你有什么想法可能会出错吗?
您的网站文件位于C:\ inetpub \ wwwroot路径中吗? – chamara