IIS - can't access page by ip address instead of localhost

后端 未结 9 1342
孤独总比滥情好
孤独总比滥情好 2020-12-13 17:43


I\'m trying to publish ClickOnce application and test it locally. I want to provide installation link so I need to update location with an IP address oth

9条回答
  •  不知归路
    2020-12-13 18:39

    So I had this same problem with WSUS and it turned out that IIS 8.5 was not binding to my ipv4 ip address, but was binding to ipv6 address. when I accessed it via localhost:8580 it would translate it to the ipv6 localhost address, and thus would work. Accessing it via ip was a no go. I had to manually bind the address using netsh, then it worked right away. bloody annoying.

    Steps:

    1. Open command prompt as administrator
    2. Type the following:

    netsh http add iplisten ipaddress (IPADDRESSOFYOURSERVER)

    that's it. You should get:

    IP address successfully added

    I found the commands here https://serverfault.com/questions/123796/get-iis-7-5-to-listen-on-ipv6

提交回复
热议问题