How to access the application running on localhost from another computer
I have a web application made in ASP.NET MVC 5, and I gave a start in it by Visual Studio 2013, the address of the Index page was like this on the machine where it is running: http://localhost:51144/
.
How do I get another computer on the network to access my application?
1 answers
If you have IIs (Internet Information Servces) installed on your machine, you can host your application as a website there. Other computers on the network can access it using http: / / <nome do seu computador>
/site name.
To test if IIS is installed open the browser and go to http://localhost
.
If you do not have IIS installed, see how to enable it in this link: http://msdn.microsoft.com/pt-br/library/ms181052 (v=vs. 80).aspx
To learn how to create a website in IIS take a look at this link: http://msdn.microsoft.com/pt-br/library/tcywfea7 (v=vs. 80).aspx
Another option is you publish your application directly from Visual Studio , see this article with a step by step: http://www.dotnetfunda.com/articles/show/2596/learn-iis-host-and-publish-in-mvc5-using-visual-studio-2013-rc