How to deploy ASP.NET web forms / MVC application and access it from another device on the same network using Internet information service (IIS).

In this post i will explain how to deploy ASP.NET web application (web forms or MVC) on local network.
the idea is to make client and server (web server) on local network , in this case any device connected to the network can access your web application by request your IP address.

Step 1:
Active IIS on your windows if its the first time you are use IIS on you windows.(follow the instructions).
Step 2:
Publish your project from visual studio , choose file system method.






Step 3 :
Open IIS , you can open it by executing the following command in RUN (inetmgr).
Step 4:
Right Click on Sites menu , choose add website and enter its configurations , in our case you must provide port number for your application to configure your windows firewall to allow incomming connections to this port number, if you keep port 80 , you must open port 80 and this is not good choice.
enter port 8080 (or any available port).



Step 5:
Open your browser and browse your application.



Step 6:
Now we are going to make this web application accessible from another device on the same network.Open your windows firewall configurations from your windows control panel.
Add new role to 8080 port number , follow the instructions:









Now ypu can access your web application from any device in your network , dont forget to make your device IP V4 static IP necause your ip will changed on the next connection method by your router DHCP.

 Hope its helpful.

Comments

Popular posts from this blog

Create (post) JIRA ticket (Issue) with rest API using C# ASP.NET

How to remove (.aspx) from ASP.NET web forms page url using Friendly URL package.

ASP.NET MVC - Load Partial View using ajax with progress indicator - Visual Studio 2013 MVC 5