Windows uses public and private network profiles to change how your PC is discovered and used for local sharing. The label describes the computer’s behavior on that connection; it is not a promise that the network is trustworthy.
Check the current connection
In Windows 11, open Settings, Network & internet, then the connected Wi-Fi network or Ethernet connection. Inspect Network profile type. Microsoft recommends Public in most cases, including when you do not need local file or printer sharing.
Choose Private only for a network whose people and devices you trust and where you actually need discovery or sharing. Do not change an unfamiliar hotel connection to Private just to make a device appear.
Test the specific resource
On a trusted home network, use a sample folder containing an invented text file and grant only the intended person access. Check from the second computer that the folder opens and that unrelated folders stay unavailable.
A private profile alone does not create folder permissions or fix a sleeping printer. If access still fails, inspect the target device, its sharing settings and whether both devices are on the same local network. Review the profile again after changing connections.