IIS website works locally 403 when accessing from internetRSS

4 replies

Last post Nov 09, 2020 02:50 AM by TRIzol

  • IIS website works locally 403 when accessing from internet

    Nov 05, 2020 03:40 PM|stephentrice|LINK

    I have setup a .NET Core Blazor site on IIS on a Windows 10 machine. I am able to access it from the local network. We have the DNS pointing to the local IP instead of the public IP. When I try to access using the public IP I get a 403 error. I have went through all of the forums and added permissions with no change. I not sure I understand why it would work locally and not when someone is trying to access it over the internet.

    Update
    I reinstalled IIS and tried to hit the default website by IP and by domain name, same thing. 403 error. I have added the everyone account and given full rights to the root folder. Still confused why it works over local network.

  • Re: IIS website works locally 403 when accessing from internet

    Nov 05, 2020 10:18 PM|lextm|LINK

    403 is a huge family so your next action is to learn the substatus code, https://docs.microsoft.com/en-us/troubleshoot/iis/http-status-code

    Lex Li
    Affordable IIS Consulting Services at https://support.lextudio.com/services/consulting.html
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: IIS website works locally 403 when accessing from internet

    Nov 05, 2020 10:26 PM|stephentrice|LINK

    Thanks. But it turns out it was a DNS issue. Thanks for the reply

  • Re: IIS website works locally 403 when accessing from internet

    Nov 06, 2020 02:23 AM|Brucz|LINK

    Hi stephentrice,

    Do you mean that you can access site through local net work in local windows 10 machine, but cannot access through outside network in other machine?

    Is the DNS issue solved? If you haven't solved it, you can post it.

    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.
  • Re: IIS website works locally 403 when accessing from internet

    Nov 09, 2020 02:50 AM|TRIzol|LINK

    Pointing to the local IP. This method of resolving domain names should be wrong. To deal with this situation
    busbarmc.com