Why does the Network Location Awareness service identify a private network as public?

Daniel Niccoli 196 Reputation points
2021-05-11T10:07:24.397+00:00

We are facing the issue that newly deployed Windows Server VMs in our environment keep identifying the network (10.12.24.0/23) as public. So for every VM we deploy, we need to manually change this to private. I would much rather know how to get Windows Server to correctly recognize the network as private.

Why does NLA think that network is public? What are the conditions on which NLA decides whether a network is public or private?

95592-image.png

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,547 questions
{count} votes

3 additional answers

Sort by: Most helpful
  1. Dave Patrick 426.3K Reputation points MVP
    2021-05-11T12:05:23.243+00:00

    NLA first attempts to identify a logical network by its DNS domain name. If a logical network does not have a domain name, NLA identifies the network from custom static information stored in the registry, and finally from its subnet address.
    https://learn.microsoft.com/en-us/windows/win32/winsock/the-role-of-nla-2

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments

  2. Sunny Qi 10,916 Reputation points Microsoft Vendor
    2021-05-12T07:33:32.917+00:00

    Hi,

    Thanks for posting in Q&A platform.

    By default the location type of the "Unidentified Network" will be marked as "Public". And I noticed that IPv4 Connectivity is Internet, may I know if this client can connect to the Internet?

    Please try to add the DNS suffix for this connection under DNS tab of Advanced TCP/IP Settings to see if the issue can be resolved.

    95858-image.png

    Best Regards,
    Sunny

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  3. Dave Patrick 426.3K Reputation points MVP
    2021-05-19T01:08:53.523+00:00

    Just checking if there's any progress or updates?

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments