Without resorting to the baseball bat
“Windows can’t communicate with the device or resource,” says the screen in front of you. Considering that all you were trying to do was go online, seeing this error message is frustrating.
But instead of giving in to frustration, you should find a way to fix the problem. Fortunately, getting the answer you need is easy!
In this post, let’s go through the different solutions. This way, you’ll know what to do.
1. Change Adapter Settings
It’s possible that Windows cannot communicate with the device or resource because of your chosen adapter settings. If so, just do some quick modifications.
Launch Control Panel.
Go to Network and Internet.
Under Network and Sharing Center, select View network status and tasks.
![Fix “Windows can’t communicate with the device or resource” Error image 4](https://helpdeskgeek.com/wp-content/pictures/2019/06/Network-and-Sharing-Center.png)
Open Change Adapter Settings.
![Fix “Windows can’t communicate with the device or resource” Error image 5](https://helpdeskgeek.com/wp-content/pictures/2019/06/Change-Adapter-Settings-1.png)
Choose your current network connection. Right-click on it and select Properties.
![Fix “Windows can’t communicate with the device or resource” Error image 6](https://helpdeskgeek.com/wp-content/pictures/2019/06/wifi-properties-1.png)
Tick the box that says Internet Protocol Version 4 (TCP/IPv4) and open Properties.
![Fix “Windows can’t communicate with the device or resource” Error image 7](https://helpdeskgeek.com/wp-content/pictures/2019/06/IPV4.png)
Under the Generaltab, choose the following options:
- Obtain an IP address automatically
- Obtain DNS server address automatically
Then hit OK.
![Fix “Windows can’t communicate with the device or resource” Error image 8](https://helpdeskgeek.com/wp-content/pictures/2019/06/IPv4-General.png)
2. Update your driver
Another cause of network connection problems are out-of-date network drivers. The solution? Update them via a manual update.
Go to the official website for your network. Search for drivers.
Make sure to find the latest and download then install.
![Fix “Windows can’t communicate with the device or resource” Error image 9](https://helpdeskgeek.com/wp-content/pictures/2019/06/HP-Website.png)
3. Edit the hosts File
Another cause of getting a “Windows can’t communicate with the device” error message is your hosts file. So it’s recommended to take it out of the picture.
First, access your system’s folder. Open Windows (C:) > Windows > System32 > drivers > etc and find the hosts file.
![Fix “Windows can’t communicate with the device or resource” Error image 10](https://helpdeskgeek.com/wp-content/pictures/2019/06/hosts-file-directory.png)
Open the file using Notepad.
![Fix “Windows can’t communicate with the device or resource” Error image 11](https://helpdeskgeek.com/wp-content/pictures/2019/06/edit-hosts-file-notepad.png)
Select everything in the file and delete it.
![Fix “Windows can’t communicate with the device or resource” Error image 12](https://helpdeskgeek.com/wp-content/pictures/2019/06/Hosts-File-to-Delete.png)
![Fix “Windows can’t communicate with the device or resource” Error image 13](https://helpdeskgeek.com/wp-content/pictures/2019/06/hosts-file-delete.png)
And hit Save. Remember to choose All Files for file type when saving.
![Fix “Windows can’t communicate with the device or resource” Error image 14](https://helpdeskgeek.com/wp-content/pictures/2019/06/hosts-file-save.png)
4. Move to Public DNS
Another possible cause is a problem with your DNS. If so, the solution is to switch to Google’s Public DNS.
Open Control Panel. Go to Network and Internet.
![Fix “Windows can’t communicate with the device or resource” Error image 15](https://helpdeskgeek.com/wp-content/pictures/2019/06/network-and-internet-1.png)
Select Network and Sharing Center.
![Fix “Windows can’t communicate with the device or resource” Error image 16](https://helpdeskgeek.com/wp-content/pictures/2019/06/Network-and-Sharing-Center-for-Public-DNS.png)
Choose Change adapter settings.
![Fix “Windows can’t communicate with the device or resource” Error image 17](https://helpdeskgeek.com/wp-content/pictures/2019/06/Change-Adapter-1.png)
Select your network. Right-click on it and choose Properties.
![Fix “Windows can’t communicate with the device or resource” Error image 18](https://helpdeskgeek.com/wp-content/pictures/2019/06/wifi-properties-1-1.png)
Under the Networking tab, choose Internet Protocol Version 4 (TCP/IPv4) and open Properties.
![Fix “Windows can’t communicate with the device or resource” Error image 19](https://helpdeskgeek.com/wp-content/pictures/2019/06/IPV4-2.png)
Under the General tab, choose Use the following DNS server addresses:
![Fix “Windows can’t communicate with the device or resource” Error image 20](https://helpdeskgeek.com/wp-content/pictures/2019/06/General.png)
Set the Preferred DNS server: to 8.8.8.8 and hit OK.
![Fix “Windows can’t communicate with the device or resource” Error image 21](https://helpdeskgeek.com/wp-content/pictures/2019/06/google-public-dns.png)
5. Clear Your DNS Cache
If switching to Public DNS doesn’t do the trick, then it’s time to clear things up.
A corrupted DNS cache can also be the reason why you can’t communicate with primary DNS server. If so, you need to do some cleaning.
Start by launching the Command Prompt. And make sure to select Run as administrator.
![Fix “Windows can’t communicate with the device or resource” Error image 22](https://helpdeskgeek.com/wp-content/pictures/2019/06/Command-Prompt-to-Clear-DNS-Cache.png)
Now, type the following command: ipconfig/flushdns and hit enter.
![Fix “Windows can’t communicate with the device or resource” Error image 23](https://helpdeskgeek.com/wp-content/pictures/2019/06/IPconfig.png)
6. Scan for Malware
If you’ve tried numerous fixes above yet still can’t connect to a network, it’s possible that your PC may be infected by malware. If so, you should clean your system thoroughly.
If you spot any malware, have it removed immediately. Use Windows Defender for this.
Begin by launching Settings.
![Fix “Windows can’t communicate with the device or resource” Error image 24](https://helpdeskgeek.com/wp-content/pictures/2019/06/Settings.png)
Here, choose Update & Security.
![Fix “Windows can’t communicate with the device or resource” Error image 25](https://helpdeskgeek.com/wp-content/pictures/2019/06/update-and-security-1.png)
Go to Windows Security. And select Virus & threat protection.
![Fix “Windows can’t communicate with the device or resource” Error image 26](https://helpdeskgeek.com/wp-content/pictures/2019/06/Windows-Security.png)
Here, select Run a new advanced scan.
![Fix “Windows can’t communicate with the device or resource” Error image 27](https://helpdeskgeek.com/wp-content/pictures/2019/06/run-advanced-scan.png)
Then choose to do a Full scan. Finally hit Scan now.
![Fix “Windows can’t communicate with the device or resource” Error image 28](https://helpdeskgeek.com/wp-content/pictures/2019/06/Full-Scan.png)