How to access my asp.net MVC website on my local IIS server from my iPad (for testing)?

前端 未结 5 1726
臣服心动
臣服心动 2021-02-02 13:40

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.

5条回答
  •  猫巷女王i
    2021-02-02 14:09

    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 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.

    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)

    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.

    enter image description here

    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 :)

提交回复
热议问题