Introduction
In this tutorial, I am going to explain various steps to access a website hosted in IIS from any PC on LAN. This detailed article will cover the following topics as follows,
- Introduction
- Terminologies
- Prerequisites
- Hosting a Website in IIS
- Create a Firewall Rule
- Points to Remember
- Conclusion
Terminologies
As per Wikipedia, "Internet Information Services (IIS, formerly Internet Information Server) is an extensible web server software created by Microsoft for use with the Windows NT family. IIS supports HTTP, HTTP/2, HTTPS, FTP, FTPS, SMTP and NNTP".
"Windows Defender Firewall with Advanced Security" Tool is used to create authenticate communication between systems (PCs). It is also used to view and create firewall rules. It is an important part of a layered security model. As per Microsoft, "It helps secure the device by allowing you to create rules that determine which network traffic is permitted to enter the device from the network and which network traffic the device is allowed to send to the network. Windows Defender Firewall also supports Internet Protocol security (IPsec), which you can use to require authentication from any device that is attempting to communicate with your device".
Prerequisites
- Windows PC with IIS (Internet Information Services) installed.
- Basic knowledge of website hosting In IIS (Internet Information Services).
- Running Project (Here, I am using an ASP.NET web application).
Hosting a Website In IIS
Step 1
Click Start and type "IIS". Then click "Internet Information Services (IIS) Manager" to open the "Internet Information Services (IIS) Manager".

(Alternatively, you can press "Windows + R" to open RUN and type "inetmgr" to open the "Internet Information Services (IIS) Manager").
Step 2
First, we create a new application pool to host our new web application. Follow steps 2a and 2b very carefully to create a new application pool.
Step 2a
Right-click on the "Application Pools", and click on "Add Application Pool...".

Step 2b
Now, create a new application pool by choosing the following configurations. (Note, if you are using the latest version of the .NET framework, select the following options).
- Give a name to your new application pool.
- Select ".NET CLR Version v4.0.30319" option from .NET CLR Version.
- Select the "Integrated" option from Managed pipeline mode.

Step 3
Right-click on the Sites and select the "Add Website..." option from the list.

Step 4
Now, enter the details as per the given fields and your requirements. And, click the "OK" button.
- Site Name: Choose a name for your new website.
- Application pool: Select the "Application pool" that you have created earlier, by clicking on the "Select" option.
- Physical path: Select the main (root) directory of the application.
- Binding
- Port: Select the required port, the default is 80. But, I am going to use port 9300.
- Host name: Do not enter a host name if you are testing or using it over a LAN.

Note
If you do not select the Application Pool, a new application pool is created using the name of the site when the site is added. IIS defaults to one application pool per site.
Congratulations, you have successfully hosted your website in IIS.

Locate your IP Address
Using the Command Prompt (Admin), the user can easily find the IP Address. Follow the instructions below to proceed.
Step 1
Open Command Prompt (Run as Administrator).
Step 2











Madhusudhan RachineniPosted May 26, 2022, 12:52 PM
Very useful content
Vinodh KumarPosted Nov 18, 2021, 4:21 PM
Good one. Nicely written.