On newer operating systems occasionally Windows picks up the wrong connection profile.
This can be checked by using the command:
Under Network category it can be either DomainAuthenticated , Public, or Private
If the computer is not domain joined and the connection should be private but it public you can change it with the following command:
Set-NetConnectionProfile -InterfaceIndex <index number> -NetworkCategory Private