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

后端 未结 9 1324
孤独总比滥情好
孤独总比滥情好 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

    0 讨论(0)
  • 2020-12-13 18:43

    Try with disabling Windows Firewall, it worked for me, but in my case, I was able to access IIS through 127.0.0.1

    0 讨论(0)
  • 2020-12-13 18:46

    Maybe it helps someone too:)

    I'm not allowed to post images, so here goes extra link to my blog. Sorry.

    IIS webpage by using IP address

    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 (usually there is only one IP)
    0 讨论(0)
提交回复
热议问题