从网络上的另一台PC访问ASP.NET开发服务器 [英] Accessing ASP.NET Development Server from another pc on the network

查看:194
本文介绍了从网络上的另一台PC访问ASP.NET开发服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在其他浏览器中测试我的网络应用程式。我已经安装了虚拟PC做到这一点。 ASP.NET开发服务器不允许远程连接,因此虚拟PC(网络上的另一台计算机)无法访问网站。



我发现帖子已启动,但没有解决方案。



我知道使用localhost不会工作。我听说使用机器ip,但如何获得正确的ip?看看我的lynksys路由器管理员?



如果我得到我的IP,确保asp.net开发服务器不允许远程连接。

解决方案

我对这里的设置有些猜测: p>

如果您的虚拟机是XP专业版,Vista商务版,Windows 7专业版或更好,那么您应该能够在开发计算机上本地运行IIS,并从另一台计算机访问该Web服务器这是通过虚拟机的名称在同一个网络上。



同样,如果你在一个真实的机器上开发,并希望使用不同的虚拟机访问Web应用程序,您应该确保您已安装IIS,在IIS中创建一个新的网站,你应该通过虚拟机上的机器名浏览到Web应用程序。



无论如何,不​​要尝试使用Visual Studio中的内置Web服务器,只需将您的网站发布到IIS并以此方式工作。



祝你好运和希望这有助于一些。


I would like to test my web app in other browsers. I have installed Virtual PC to do just that. the ASP.NET development server does not allow remote connections so the virtual pc (another computer on the network) cannot access the website.

I found this post that was started but there was no solution.

I understand that using localhost will not work. I heard about using the machines ip, but how do I get that correct ip? Look at my lynksys router admin?

If I were to get as far as getting my IP, im sure that the asp.net dev server does not allow remote connections. How do I enable it to do so?

解决方案

I'm making some guesses about your setup here so bear with:

If your virtual machine is XP Professional, Vista Business, Windows 7 Professional or better, then you should be able to run IIS locally on the development machine and access that webserver from another machine which is on the same network via the virtual machine's name.

Likewise, if you're doing development on a real machine and would like to use different virtual machines to access the web application, you should make sure that you have IIS installed, create a new website in IIS and you should be to browse to the web application via machine name from your virtual machines.

Either way, don't try to use the builtin web server from Visual Studio, just publish your site to IIS and work with it that way.

Good luck and hope this helps some.

这篇关于从网络上的另一台PC访问ASP.NET开发服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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