如何访问我的asp.net MVC的网站我的本地IIS服务器从我的iPad(用于测试)吗? [英] How to access my asp.net MVC website on my local IIS server from my iPad (for testing)?

查看:200
本文介绍了如何访问我的asp.net MVC的网站我的本地IIS服务器从我的iPad(用于测试)吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立使用Visual Studio 2010中,我可以运行我的asp.net网站从我的电脑(由pressing F5)的应用程序。我想运行在我的iPad这个网站用于测试目的。

I'm building an app using Visual Studio 2010. I can run my asp.net website from my computer (by pressing F5). I would like to run this website on my iPad for testing purpose.

我已经停用​​了防火墙和防病毒,但它不'的帮助。我的电脑的IP地址192.168.1.6是

I already disabled my Firewall and Antivirus but It doesnt' help. The IP address of my Pc is 192.168.1.6

从我的电脑我跑我的网站从的http://本地主机:8080 /

From my computer I run my website from http://localhost:8080/

这是我的iPad我想: http://192.168.1.6:8080/

From my iPad I tried: http://192.168.1.6:8080/

我不工作。

任何帮助是极大AP preciated。

Any help is greatly appreciated.

感谢。

推荐答案

如果您正在使用的 Visual Studio 2010中,然后你可以使用 IIS防爆preSS 这是一个展开IIS 这使卡西尼号在其膝盖。微软强烈建议我们的开发人员停止使用卡西尼作为我们调试的Web服务器。

If you are using Visual Studio 2010 then you can use the IIS Express, which is a FULL IIS that puts Cassini on its knees. Microsoft strongly suggest that we developers stop using Cassini as our web server for debugging.

IIS防爆preSS让你不仅要ISS的全部优点,如SSL,但让你的本地网络上的任何一台机器完全访问权限,作用于端口80或其他任何你想。

IIS Express lets you not only take the full advantages of ISS such as SSL, but enable full access for any machine on your local network, acting on port 80 or any other you would like.

第一:我想从指出MIX视频的斯科特Hanselmen 关于这一点;看到视频 放大IIS上的防爆preSS你的知识( IIS防爆preSS始于 32:50

First: I would like to point out the MIX Video from Scott Hanselmen about this; see this video to enlarge your knowledge on IIS Express (IIS Express starts on 32:50)

二:安装后的VS2010 SP1 和<一个href=\"http://www.microsoft.com/downloads/en/details.aspx?FamilyID=82cbd599-d29a-43e3-b78b-0f863d22811a&displaylang=en\">MVC 3工具更新(你可以同时更新使用 Web平台安装)上右键单击项目,然后选择使用IIS前preSS,以及与此(而不是卡西尼),你可以在任何机器上的本地主机访问您的网站的调试。

Second: After you installed VS2010 SP1 and MVC 3 Tools Update (you can update both using Web Platform Installer) right-click on your project and choose "Use IIS Express", and with this (instead Cassini) you can access your debug site from any machine on your localhost.

现在你只需要做的 IIS防爆preSS在端口80 运行。就因为这一点,没有什么比<更好href=\"http://www.hanselman.com/blog/WorkingWithSSLAtDevelopmentTimeIsEasierWithIISEx$p$pss.aspx\">read斯科特的就可以了博客。这是关于你的开发计算机/网站上运行的80端口上运行SSL IIS防爆preSS,只需抢到端口的位80部分:)

Now you just need make IIS Express to run on port 80. And for that, there's nothing better than to read Scott's Blog on it. It's about running IIS Express on port 80 as well running SSL on your dev machine/site so, just grab the bits on port 80 part :)

这篇关于如何访问我的asp.net MVC的网站我的本地IIS服务器从我的iPad(用于测试)吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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