We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

Windows 10 IIS works with IP, but not localhost (resolved to IPv6)RSS

2 replies

Last post Mar 08, 2021 07:59 AM by Brucz

  • Windows 10 IIS works with IP, but not localhost (resolved to IPv6)

    Mar 05, 2021 08:43 PM|Inzi|LINK

    In troubleshooting - I completely removed IIS, purged inetpub folder, then re-added the IIS feature with default settings.
    Using MS Edge

    In address bar, entering localhost returns 503 service unavailable.
    In address bar, entering https://localhost returns the iisstart page (blue page, "Internet Information Services")

    In address bar, entering 127.0.0.1 returns the iisstart page (blue page, "Internet Information Services")

    In address bar, entering [::1] returns the iisstart page (blue page, "Internet Information Services")

    At command prompt - ping localhost resolves to ::1 (IPv6)

    In hosts file, 127.0.0.1  localhost is the only uncommented entry. 


    The only resolution I've found for this is to edit my site's bindings, and add localhost for all unassigned on port 80.

    Does anyone have an explanation why my local IIS server requires adding localhost for http as a host name in order for this to work?

  • Re: Windows 10 IIS works with IP, but not localhost (resolved to IPv6)

    Mar 06, 2021 12:43 AM|lextm|LINK

    The browser can hide away too many details. Can you try to use a tool like Fiddler Composer? Composer | Progress Telerik Fiddler Everywhere

    That should give you more insights into the site bindings and what URLs are served by the bindings.

    Lex Li
    Want to have a chat on the issues you meet? Book an appointment at https://buy.stripe.com/cN24ia0yi7sAdIA7sv
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Windows 10 IIS works with IP, but not localhost (resolved to IPv6)

    Mar 08, 2021 07:59 AM|Brucz|LINK

    Hi Inzi,

    What is the identity of application pool and what is the user identity of anonymous authentication? If the identity of anonymous authentication is wrong or outdata, IIS will also return 503.

    Best regards,

    Brucz

    .NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.