Based on my research, this error is mainly a network-related problem of your Local Area Connection and generally this error occurs due to the lack of network permissions, improper installed Network Drivers, and sometimes a single corrupted Windows Registry can be the reason too.
According to your description, your issue seems more related with Networking. As the topic have not moved to Microsoft Q&A yet, please kindly re-post your issue to forum TechNet.
Note that TechNet is retiring soon, and all supported forums would be moved to Microsoft Q&A later. Please watch out for our future announcements.