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

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

    The IIS is a multi web site server. The way is distinct the site is by the host header name. So you need to setup that on your web site.

    Here is the steps that you need to follow:

    How to configure multiple IIS websites to access using host headers?

    In general, open your web site properties, locate the Ip Address and near its there is the advanced, "multiple identities for this web site". There you need ether to add all income to this site with a star: "*", ether place the names you like to work with.

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

    I was trying to access my web pages on specific port number and tried much things, but I've found the port was filtered by firewall. Just added a bypass rule and everything was done.

    Maybe help someone!

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

    Check the settings of the browser proxy . For me it helped , traffic was directed outside.

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

    In my case it was because I was using a port other than the default port 80. I was able to access the site locally using localhost but not on another machine using the IP address.

    To solve the issue I had to add a firewall inbound rule to allow the port.

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

    In IIS Manager, I added a binding to the site specifying the IP address. Previously, all my bindings were host names.

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

    Follow the below steps -

    1. In IIS Right click the "Default Web Site"
    2. Click Edit Buildings in the context menu
    3. Select and edit
    4. Give your machine IP instead of "*" in IP Address
    0 讨论(0)
提交回复
热议问题