logo
search
OneDrive Error Codes

Fix OneDrive Sign-In Error 0x8004de40 on Home Wi-Fi

Phi Hung VoPhi Hung Vo Oct 9, 2026 869 views

Question details

The user cannot sign in to OneDrive using a home Wi-Fi network due to error 0x8004de40, although cellular and other networks function perfectly.

How to Fix OneDrive Sign-In Error 0x8004de40 on Home Wi-Fi
Product
Microsoft OneDrive
Device & OS
not provided
Scenario
Attempting to log into a personal or work OneDrive account while connected to a specific home Wi-Fi network.
Observed behavior
The sign-in process fails with error code 0x8004de40 on the home network, even after reinstalling the application and clearing Windows credentials.
Before you start

Before troubleshooting, verify that your home internet connection is actively loading standard webpages, and temporarily disable any VPNs or custom proxy services that might be blocking Microsoft authentication traffic.

Solution 1Recommended

Change Network DNS to a Public DNS Server

Switching to a reliable public DNS, such as Google DNS, can resolve domain resolution issues that block OneDrive from connecting to Microsoft servers.

Error 0x8004de40 frequently points to DNS resolution failures. By bypassing your ISP's default DNS and using a public alternative, you can quickly restore the connection between your device and Microsoft's cloud servers.

1
Access Network Connections

Press Windows Key + R, type 'ncpa.cpl', and press Enter to open the Network Connections window.

2
Open Wi-Fi Properties

Right-click on your active home Wi-Fi connection and select Properties from the context menu.

3
Modify IPv4 Settings

Scroll down the list, double-click on 'Internet Protocol Version 4 (TCP/IPv4)' to open its properties.

4
Enter Public DNS Addresses

Select the 'Use the following DNS server addresses' radio button. Enter 8.8.8.8 for the Preferred DNS server and 8.8.4.4 for the Alternate DNS server.

5
Save and Restart

Click OK to save the changes, close the windows, and then restart the OneDrive application to test the sign-in.

Change Network DNS to a Public DNS Server
Flush DNS Cache: After changing your DNS settings, it is highly recommended to open Command Prompt as an administrator and run the command 'ipconfig /flushdns' to clear any outdated network cache.
Free Microsoft Office alternative

Try WPS Office for Seamless Cloud File Management

If persistent OneDrive sync and sign-in errors are interrupting your workflow, consider switching to WPS Office. It provides a lightweight, free alternative with built-in cloud support, full compatibility with Microsoft Office formats, and a highly familiar user interface.

  1. 1. Download and Install: Visit the official WPS website to download and install the free office suite on your device.
  2. 2. Sign In to WPS Cloud: Create a free account or log in to access your complimentary cloud storage space.
  3. 3. Save and Sync: Easily save your documents directly to WPS Cloud for seamless, error-free access across all your devices.
Free and lightweight office suite for daily productivityFully compatible with Microsoft Word, Excel, and PowerPoint formatsBuilt-in WPS Cloud for reliable and effortless file synchronizationFamiliar user interface for seamless migration from Microsoft Office
microsoft office alternative - wps office

Frequently Asked Questions

What does OneDrive error code 0x8004de40 mean?

Error code 0x8004de40 typically indicates that the OneDrive application is having trouble connecting to the cloud server. This is most often caused by local network configuration issues, DNS resolution failures, or active proxy settings.

Why does OneDrive sign in fine on cellular data but not on my home Wi-Fi?

This happens when your home internet service provider (ISP) uses default DNS settings that fail to resolve Microsoft's login servers, or if your home router has a built-in firewall blocking the connection. Cellular networks use a different DNS and routing path, bypassing the home network issue.

Can a VPN cause the 0x8004de40 error on OneDrive?

Yes. If your VPN is misconfigured, uses a restricted server location, or actively blocks specific Microsoft 365 IP addresses, it can prevent OneDrive from authenticating. Temporarily disabling the VPN can help determine if it is the root cause.

How do I know if Microsoft 365 services are currently down?

You can check the operational status of OneDrive by visiting the official Microsoft 365 Service Health portal or by checking the Microsoft 365 Status account on X (formerly Twitter) for live updates regarding ongoing outages.