When you connect to a network for the first time, you must choose a network location. For example: Private, Public, and Domain. Based on the network location you choose, Windows will automatically assign a network discovery state to the network and opens the appropriate Windows Firewall ports for that state.
Network discovery is a network setting that affects whether your computer can find other computers and devices on the network and whether other computers on the network can find your computer.
This tutorial will show you how to turn on or off network discovery for private and guest or public networks on your Windows 10 PC.