If you are getting this error message that says your computer is not connected to the Internet, OneDrive error code 0x800c0005, while your computer has full access to the Internet, this article will help you solve the problem. Before we go any further, let’s make one thing clear: there is no problem with your network if you can access the Internet from anywhere. That way, you don’t need to troubleshoot your network, change DNS, or even redirect the port. The problem is somewhere in the sales, and that’s what we’ll talk about in this article.

Most of the users who reported this are using their computer or are logged into a domain on the corporate network with their Active Directory account. If they have OneDrive for Business (Office 365) or a personal account linked to the same account, this is causing the problem.

Perform a clean boot

Execute a Clean Boot

Putting your system into a clean boot state can help you determine if third-party apps or autorun items are causing the problem. Review the problem in the clean-boot state.

Note: After completing the clean boot troubleshooting step, follow the “Resetting your computer to normal boot after clean boot troubleshooting” section of this link to return your computer to clean boot mode.

Discontinue OneDrive Personal (for enterprise networks)

If you are using OneDrive Personal in a corporate network environment while logged into an Active Directory account, this is the cause of the error. Enterprise networks have their own rules that block your actions when you log in to your OneDrive Personal account.

Personal OneDrive accounts on corporate networks are not allowed to connect to the Internet because it is automatically assumed that the system is not connected to the Internet. The best thing to do here is to stop using OneDrive Personal on corporate networks.

Ask your administrator to remove the restrictions

If you are using OneDrive for business and still get an error message, your company must have a network connectivity issue. In such cases, you should contact your company’s system administrator to see if your OneDrive connection is restricted or if there are any blocks. You have the privilege of removing any restrictions. Once they are unlocked, you will be able to access OneDrive Business over the Internet.

Disable proxy through the registry

Step 1: Open the registry editor and go to:
HKEY_CURRENT_USER \ Software \ Policies \ Microsoft \ Windows \ CurrentVersion \ Internet Settings

Step 2. Create a new DWORD named EnableAutoproxyResultCache and set it to 0 to disable automatic proxy caching.

Step 3: Restart your computer.