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

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

问题描述

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

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.

据我所知,使用本地主机将无法正常工作。我听到有关使用机器的IP,但我如何得到正确的IP?看看我lynksys路由器的后台管理?

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?

如果我是获得尽可能让我的IP,即时通讯确保asp.net开发服务器不允许远程连接。如何启用它这样做?

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:

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

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.

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

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.

无论哪种方式,不要尝试使用内置Web服务器从Visual Studio,只需将站点发布到IIS和使用它的方式。

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天全站免登陆