To prevent computers and devices on networks you connect to from being able to see your computer, you need to disable the network discovery setting. Network discovery enables your computer to be accessible on other network computers, and though this can be useful in home networks you should always disable it when you're on a public, untrusted network. Once you've disabled network discovery, your computer will be hidden from any other computers and devices on the network.
Right-click the network or Wi-Fi icon in the system tray area of the Windows taskbar and select "Open Network and Sharing Center."
Click the "Change advanced sharing settings" link in the left pane.
Select the "Turn off network discovery" option. The "Turn on network discovery" option is deselected automatically.Click the "Save changes" button. Confirm the operation or type in your administrator password, if prompted.