IIS Default Web site not working – Others work

On Windows systems there are tmes where the Default web site is not browing (even not starting), but rest of the sites are working fine.

When you try to start the Default web site, you may end up with an error code: (Exception from HRESULT:0x800704BE)

This is due to incorrect configuration of the localhost listener under the TCP/IP stack.

So to fix the issue, you simply have to follow the below steps;

Step 01 – Get current listener IP

netsh http show iplisten

If the above value is a NULL value, you may add the localhost and the required IP addresses accordinly. If a wrong IP address is showing, you may delete the value as below.

Step 02 – Deleting the in correct IP

netsh http delete iplisten ipaddress=IP ADDRESS

Step 03 – Adding the localhost and related IP addresses

netsh http add iplisten 127.0.0.1

Step 04 – Adding all the IPs to IP listener

netsh http add iplisten ipaddress=0.0.0.0

Step 05 – Restarting the IIS service

How to change network card priority in Windows Servers

There are occasions where the sys admins need to select the default NIC out of multiple NICs. Specially when it comes to working with NIC teaming & etc.

To solve this, you just have to tell your computer which network card you want it to use first.

Just launch the Run command and enter “ncpa.cpl“.
As you can see, you have all your network cards available in this window.

Next, if you press the “ALT” key, you will show different tabs appear in the top.
Click on the “Advanced” tab and then “Advanced Settings”

A window will appear with the different network cards and the different parameters for IPv4 and IPv6.

There, you just have to select the one you want to use in priority and click on the up arrow and put it at the top of the list.