简体   繁体   中英

Deploying ASP.NET MVC 5 Application to Win Server 2008

I would like to test my ASP.NET MVC application on my tablets and phones on my home local network.

How would I access the website from such devices?

Is it possible to deploy the application to some folder on my Win Server VM and then access the folder by typing that URL in mobile web browsers such as Safari?

Has anyone done this?

I will offer up 2 possible solutions here.

  1. Learn how to deploy your app to a web server. Here is a microsoft article explaining how to do this at home, in a relatively quick way, and learning skills you may need in the future. This is the best way if you need to learn more about deploying. it should get easier each time you do it: http://www.asp.net/mvc/tutorials/deployment/visual-studio-web-deployment/deploying-to-iis

  2. Leech off your development instance, which requires traffic to come in on localhost/127.0.0.1 which will require a traffic-redirector / port-forwarder on your host instance(your developement web server on your host instance has a 'code name', its called Cassini!, its good to know this name when researching about it...) Look at this link, and remember that your IP Address and Port number is most likely not the same as the one in the solution: Debugging ASP.NET MVC3 application hosted on Local IIS Webserver

...dont forget about your windows firewall, too...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM