In Windows, when you connect to a wireless network, it will register it as a public network or a private network. Private networks are basically your home and work, while public networks are everywhere else, which you don't trust.
How to Change Network from Public to Private to Public on Windows PC
Sometimes Windows will detect a private network as a public network and vice versa. You can make some manual changes to ensure that you don’t accidentally overshare on a public network or block all sharing on a private network.
In this article I will take you through the steps for Windows 10, Windows 8.1, Windows 8, and Windows 7.
In Windows 10, click on the Ethernet or wireless icon in the notification area of your taskbar. The Ethernet icon looks like a little computer, and the wireless icon is, well, pretty familiar. Once you do that, click on the Network & Internet settings link.