Network Discovery is a core Windows feature that dictates whether your computer can see (and be seen by) other devices on a local area network (LAN). While this is highly convenient for a trusted home or office network where file and printer sharing is essential, leaving Network Discovery enabled on a public or untrusted Wi-Fi network (such as a café or airport) poses a significant security risk. It exposes your machine to potential snooping or unauthorized access attempts from unknown devices.
This guide explains how to completely disable Network Discovery and File Sharing in Windows 11 to ensure your computer remains stealthy and secure on public networks.
Disable Network Discovery via Windows Settings
The most user-friendly method to turn off this feature is through the modernized Windows 11 Settings app, which allows you to configure your network profile type.
- Press Windows Key + I to open the Settings app.
- Select Network & internet from the left-hand sidebar.
- Click on Wi-Fi (or Ethernet, depending on your current connection type).
- Click on the name of the network you are currently connected to (its properties page).
- Under the Network profile type section, switch the setting from Private network to Public network.
By designating the connection as a “Public network,” Windows 11 automatically disables Network Discovery, hiding your PC from other devices on that specific network. This is the recommended setting for all non-home environments.
Disable Network Discovery via Advanced Sharing Settings
To enforce a global rule that disables Network Discovery across all future Private networks as well (a highly restrictive, maximum-security approach), you must use the Advanced Sharing configuration menu.
- Open the Settings app and navigate to Network & internet.
- Scroll down to the bottom of the page and select Advanced network settings.
- Under the “More settings” section, click on Advanced sharing settings.
- Expand the Private networks drop-down menu.
- Toggle the switch next to Network discovery to the Off position.
- Ensure the toggle for File and printer sharing is also set to Off.
Once you disable these global toggles, your Windows 11 machine will refuse to broadcast its presence or search for other endpoints, regardless of whether the network is classified as Public or Private. Your device is now completely isolated on the LAN.