Why Does Windows Network Discovery Stop When a VPN Connects?
The Network folder in File Explorer goes blank the moment your VPN connects. Here is why Windows network discovery stops, how to confirm the cause, and what to try in a sensible order.
10 min readUpdated Nov 9, 2026By XPASS Editorial Team

You open File Explorer, click Network, and the list of shared computers, media servers and printers is empty. A few minutes earlier it was full. The only thing that changed is that you connected your VPN. Switch the VPN off, wait a few seconds, and the devices come back. It looks as if the VPN has switched off a Windows feature, but the real story is more ordinary: two sets of rules about where traffic should go are meeting on the same computer.
This article explains how Windows network discovery works, why connecting a VPN can interrupt it, and how to find which of the usual causes applies to you. It is written for home and small-office users who share files, stream from a media server or print over the local network. It does not promise that every combination of Windows version, VPN app and router will work, because those details vary. What it offers is a short, safe order of checks.
What Windows network discovery actually does
Network discovery is the Windows feature that lets your computer find other devices on the same local network and lets them find you. When it works, the Network folder lists nearby PCs, network drives, media servers and printers without you typing anything.
Behind the scenes it is not one protocol but a small family of them. Windows may use several methods at once, depending on the version and the device:
- Multicast and broadcast name lookups, so a computer can ask "who is called OFFICE-PC?" and get an answer from the owner.
- Service announcements, where devices say "I am a printer" or "I share media" to anyone listening.
- Older name lookup methods kept for compatibility with older shared folders.
- A few background Windows services that publish your own computer to the network and listen for others.
The common thread is that these messages are sent to the whole local network segment, not to one named destination. A router normally does not forward them to other networks. That is by design: discovery is meant to work in one room, on one network, using private addresses of the kind described in RFC 1918.
Because the messages never leave the local segment, anything that changes which network card Windows uses, or which firewall rules apply to it, can silently break discovery. A VPN does both.

Why a VPN can stop it
When you connect a VPN, Windows gains a new virtual network adapter. You can read more about this in the VPN network adapter explained. The adapter looks like a second network card, but instead of a cable or radio it leads into the tunnel. Several things can then go wrong for discovery.
The new adapter gets its own network profile
Windows keeps a network profile for each connection, normally Private or Public. The Private profile is meant for networks you trust, such as home, and allows discovery. The Public profile is meant for cafes and airports and blocks it by default. A virtual VPN adapter is often given a profile of its own, and it may be Public or "unidentified". The discovery setting for that profile can then be off, even though your Wi-Fi connection is still Private and unchanged.
The firewall rules are tied to the profile
Windows Defender Firewall has a group of rules called Network Discovery. They are enabled per profile. If the rules are active for Private but not for Public, the same computer can answer discovery on your Wi-Fi and stay silent on the VPN adapter. Third-party security software may add its own rules on top. For the wider picture, see how a VPN and the Windows firewall interact.
Windows picks the VPN adapter for local questions
Windows decides which adapter to use partly by comparing each adapter's priority, called its metric. When the VPN connects, it may ask to be the preferred route. If discovery questions are sent out of the virtual adapter, they travel into the tunnel instead of the home network, and nobody at home hears them. Meanwhile the answers from local devices arrive on the Wi-Fi adapter, where Windows may not expect them.
The VPN app sends everything into the tunnel
Many VPN apps send all traffic through the tunnel, including traffic meant for local private addresses. Some apps have a setting such as "allow local network access", while others block local traffic as a safety measure so that nothing leaks outside the tunnel. If local access is blocked, shared PCs, printers and media servers cannot be reached at all, not just discovered.
Name lookup moves to the VPN's DNS
Even when a shared computer is still reachable, you may be unable to open it by name. When the VPN is on, Windows may ask the VPN's DNS server about OFFICE-PC, and that server knows nothing about your home. The basics of name lookup are in RFC 1035. A related problem with .local names is covered in multicast DNS and home discovery.
A quick comparison of the usual causes
| Cause | What you notice | Likely test |
|---|---|---|
| New adapter has a Public profile | Network folder is empty, but opening an address works | Check the profile of the VPN connection |
| Firewall rules off for that profile | Devices do not answer discovery; ping fails too | Check the Network Discovery rule group |
| Local traffic sent into the tunnel | Address and name both fail | Compare with the VPN off |
| App blocks local network access | Everything local is unreachable | Look for a local access option in the app |
| Name lookup goes to VPN DNS | Address works, name does not | Open the device by IP address |
Use this table only as a guide. More than one cause can apply at the same time.
Step 1: Confirm that the VPN is the trigger
Before changing any setting, make sure the pattern is real.
- With the VPN off, open File Explorer and click Network. Note which devices are listed.
- Connect the VPN and refresh the Network view (press F5). Note what changes.
- Disconnect the VPN and wait about 30 seconds. Windows can take a short time to rebuild the list, so do not judge too quickly.
- Repeat once more. If the pattern repeats, the VPN connection is involved.
Also test one device that you know is on. For example, ask another person in the house to confirm their PC is switched on and sharing. A sleeping computer looks exactly like a discovery failure.
Step 2: Test by address, not by name
This test separates a discovery problem from a routing problem.
- Find the address of the shared device. On the device itself, you can find it in network settings or by running
ipconfigin a command window. Home addresses often look like192.168.1.20. - With the VPN connected, press the Windows key and R, type
\\192.168.1.20(use your own address) and press Enter. - If the shared folders open, local traffic is getting through, and the problem is discovery or name lookup only.
- If it fails, local traffic is being blocked or sent into the tunnel. Go to steps 4 and 5.
A printer may offer a web page instead. Typing its address into a browser with the VPN on is a similar test.
Step 3: Check the network profile
- Open Settings, then Network and internet.
- Choose Wi-Fi or Ethernet, then select the connection. Look for the network profile type. Wording and layout differ between Windows 10 and Windows 11.
- For your home network, Private should be selected.
- If you want a PowerShell view, open PowerShell and run
Get-NetConnectionProfile. It lists each connection with its category.
If a VPN adapter appears in the list as Public, that is a likely reason. Think before you change it. Setting a VPN adapter to Private on a trusted home network is usually reasonable. Doing the same on a hotel or airport network is not, because it makes your computer visible to strangers.
Step 4: Check the Network Discovery setting and firewall rules
- Open Settings, then Network and internet, then Advanced network settings, then Advanced sharing settings (the path differs slightly in Windows 10).
- Expand Private networks and confirm that Network discovery is on. Leave Public networks off unless you have a good reason.
- In the Start menu, search for Windows Defender Firewall, choose Allow an app or feature through Windows Defender Firewall, and check that Network Discovery is ticked for the profile your connection uses.
- If you use extra security software, check whether it has its own firewall that treats the VPN adapter as untrusted.
Changing these settings is a trade-off, so change one at a time and test after each change. If you work on a company computer, ask your administrator first, because company policy may control these settings and may lock them for good reason.
Step 5: Check whether the VPN app lets local traffic through
Open the settings of your VPN app and look for options with names like local network access, LAN access, or allow local devices. The wording varies by app and platform, and not every app offers the option. If your app does not, you can still use the approach in the next step.
If the setting exists and is off, turn it on only when you trust the local network. With it on, traffic to local devices travels outside the tunnel. That traffic is not protected by the VPN, which is usually fine at home and not fine on a public network. For a wider look at excluding some traffic from the tunnel, see split tunneling on Windows.

Step 6: Look at adapter priority
This step is more advanced and is not usually needed, so try it last.
- Press the Windows key and R, type
ncpa.cpland press Enter to open the network connections list. - Right-click your Wi-Fi or Ethernet adapter, choose Properties, select Internet Protocol Version 4, and click Properties, then Advanced.
- The Automatic metric box is normally ticked. Turning it off and entering a number lets you set a fixed priority. A lower number is preferred.
- Do not change this on a company computer or if you do not understand the effect. Write down the original value so that you can restore it.
Most people never need this step. If you do change it and the internet stops working, put the setting back to automatic.
A plain example
Mina works from a small apartment. She shares a folder from her desktop PC and prints to a network printer. On her laptop, the Network folder normally shows both. When she connects her VPN to use public Wi-Fi at a cafe, then comes home and forgets to disconnect it, the Network folder is empty.
She follows the steps. With the VPN off, the desktop and printer reappear, so the VPN is the trigger. With the VPN on, \\192.168.1.20 opens her shared folder, so local traffic works and only discovery is the problem. In Settings she sees that the VPN connection has a Public profile. Because she is at home, she disconnects the VPN rather than relaxing that profile, since she did not need it at home anyway. At the cafe she keeps discovery off. In the end she changes nothing permanently, and the cause was simply that she left the VPN on at home.
Her fix is not the right answer for everyone, but the order of checks is. Confirm the trigger, separate discovery from routing, then look at profile, firewall and app settings.
Limits and what to watch for
- A VPN is not a tool for making devices in one place visible to a computer in another. Discovery is meant for a single local network, and most consumer VPN tunnels do not carry it.
- Some Windows editions and company-managed computers control these settings through policy. If a setting is greyed out or changes back, an administrator rule may be responsible.
- Network discovery makes your computer visible. Leaving it on in a public place is a real risk, so keep it for trusted networks.
- Different VPN apps, Windows versions and routers behave differently. A fix that works in one setup may not work in another, and a VPN does not guarantee that every local device will keep working.
- Do not disable the firewall to make discovery work. Adjust a specific rule or use a different approach instead.
- If you need a shared folder on a regular basis, connecting by address or mapping a network drive is more dependable than relying on discovery, with or without a VPN. For a similar case with printers, see why a local printer disappears with a VPN.
Summary
Windows network discovery stops when a VPN connects because the VPN adds a virtual adapter that can carry a different network profile, different firewall rules, a different priority and a different DNS server, and because discovery messages are meant to stay on one local network. Confirm that the VPN is the trigger, test by address to separate discovery from routing, and then check the profile, the firewall rules and the VPN app's local access option, changing one thing at a time and keeping discovery off on networks you do not trust. If you want a pass you can switch on for travel and off at home with no automatic renewal, see the options on the XPASS pricing page.
Frequently asked questions
Why does the Network folder in Windows go empty when my VPN connects?
Network discovery relies on small broadcast and multicast messages that stay on one local network. When a VPN connects, Windows may treat the virtual VPN adapter as the main network, apply a stricter network profile or firewall rules to it, or send local traffic into the tunnel. Any of these can make shared computers and printers stop appearing.
Is my network discovery setting being turned off by the VPN?
Not usually. The setting is tied to the network profile (Private or Public) of each connection. A new virtual adapter often gets a different profile from your home Wi-Fi, so discovery can look switched off for that adapter while your Wi-Fi connection is unchanged.
Can I still reach a shared PC or printer by its address while the VPN is on?
Sometimes. Opening a path such as \\192.168.1.20 in File Explorer skips discovery and name lookup, but it still needs local traffic to be allowed to leave the computer outside the tunnel. If that also fails, the problem is routing or the firewall rather than discovery alone.
Is it safe to turn on network discovery for the VPN connection?
Only on a network you trust, such as your own home network. On a hotel, cafe or airport network, keep discovery off, because it makes your computer visible to other people on that network.
Will changing these settings make the VPN less private?
Allowing local network traffic outside the tunnel means that traffic to local devices is not protected by the VPN. Traffic to the internet can still use the tunnel. A VPN does not guarantee security, so choose the setting that matches how much you trust the local network.
References
About the author

Bob Kanokphon Thongdee
- Founder of XPASS VPN
- Co-founder of eSIMonline.asia
- More than 7 years in online marketing
- Founder of Cojourney Visa and Cojourney Travel
Need a VPN for a short trip or a busy month?
XPASS sells prepaid passes for a set number of days. You pay once and nothing renews automatically.
See passesKeep reading

Troubleshooting
Fix Missing VPN Network Adapter on Windows
A VPN that cannot find its network adapter will not connect. This guide shows where Windows hides adapters, how to bring one back and when to reset.
10 min read

Device Guides
Windows Firewall and VPN: Safe Configuration Tips
How to keep Windows Defender Firewall switched on and still let your VPN work: profiles, prompts, narrow rules, sharing settings and a safe troubleshooting routine.
10 min read

Troubleshooting
Can a VPN Break Multicast DNS Discovery on a Home Network?
Your printer or smart speaker disappears the moment the VPN connects. Here is how multicast DNS works, why a VPN can interfere, and how to test it step by step.
10 min read