Error: IIS giving error (can't access site) while accessing with IP but working with localhost only



Sometime we may face the issue where site is working with locahost,but when we bind the IP from IIS

=========================================================

In IIS Management : Choose Site, then Bindings.

Add

Type : http

HostName : Empty

Port : 80....

IP Address : Choose from drop-down menu the IP you need.

=========================================================

the site give error like (can't access site)

Solution: This is because IIS was not able to bind to ipv4 ip address, we have to manually bind the address using netsh command, then it worked right away. 

Steps:

Open command prompt as administrator

Command: netsh http add iplisten <IPADDRESS>

IP address successfully added

No comments

Powered by Blogger.