How to Repair: Windows can’t communicate with the device or resource (primary DNS server)

As working from home has become the new reality for many, Internet connection problems are the last thing you want to imagine. However, connection problems on Windows 10 machines can occur for many reasons. In addition, a Windows error can’t find a connection to a device or resource.

If you’re seeing this error on your screen right now, you may have already tried several solutions to the problem. Unfortunately, this error can occur for a variety of reasons, including improper network configuration, and determining the exact cause can be difficult.

Here is a definitive step-by-step guide to explaining and fixing this error.

What causes the “Windows cannot communicate with a device or resource” message?

There could be several reasons for this error message: your IPv4 or IPv6 settings are incorrect, you are using a proxy server, there is a conflict in your network settings, or the DNS server you are trying to access is temporarily unavailable.

We’ll look at all the available tools, starting with the simplest and moving on to more advanced solutions.

Tip: Try to disable proxy servers before you start applying the solutions presented here. Even if you have limited Internet access at an educational institution (college, university, etc.), you must follow their rules because they have their own Internet settings, unlike the unlimited Internet we use at home.

How to eliminate the “Windows can’t connect to a device or resource” message?

Scan for malware

  1. To do this, use Windows Defender. Start with the settings.
  2. Here, select Update and Security.
  3. Go to Windows Security. And select Virus and Threat Protection.
  4. Select Run a new advanced scan here.
  5. Then select Run a full scan. Finally, click the Scan Now button.

Clear the DNS cache

  1. First, run the command line. Make sure that you select Run as administrator.
  2. Now type the following command: ipconfig/flushdns and press Enter.

Switching to public DNS

  1. Open the control panel. Go to Network and Internet.
  2. Select the Network and Sharing Center.
  3. Select Change adapter settings.
  4. Select your network. Right-click and select Properties.
  5. On the Network tab, select Internet Protocol version 4 (TCP/IPv4) and open Properties.
  6. On the General tab, select the “Use the following DNS server addresses:” option.
  7. Set your preferred DNS server: to and click OK.

Changing adapter settings

  1. Start the Control Panel.
  2. Go to Network and Internet.
  3. Under Network and Sharing Center, select View network status and tasks.
  4. Open Change Adapter Settings.
  5. Select the current network connection. Right-click it and select Properties.
  6. Select the Internet Protocol version 4 (TCP/IPv4) check box and open Properties.
  7. On the General tab, select the following options:
  8. Obtain an IP address automatically
  9. Obtain DNS server address automatically.
  10. Then click OK.

Frequently Asked Questions

  1. Update the drivers.
  2. Update the drivers using Windows itself.
  3. Update drivers using a third-party application.
  4. Clear the DNS cache.
  5. Reset your connection settings.

  1. Update the network adapter driver.
  2. Reboot your router.
  3. Switch to Google DNS.
  4. Clear the DNS cache.
  5. Turn off your Windows Defender firewall.

  1. Use the command line.
  2. Disable peer-to-peer downloading of Windows updates.
  3. Reinstall the drivers for the network adapter.
  4. Change the power settings.
  5. Make sure that the Microsoft LLDP driver is enabled.
  6. Perform a reboot to troubleshoot your Windows 10 DNS issues.

  1. Right-click on the Start icon.
  2. Click the Command Prompt.
  3. The Windows Command Prompt window will appear. Type: ipconfig /flushdns. and press ENTER.
  4. You should get the following message: Windows IP Configuration. The DNS resolver cache has been successfully flushed.