Fix OneDrive Sign-In Error 0x8004de40 on Home Wi-Fi
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.

- 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 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.
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.
Press Windows Key + R, type 'ncpa.cpl', and press Enter to open the Network Connections window.
Right-click on your active home Wi-Fi connection and select Properties from the context menu.
Scroll down the list, double-click on 'Internet Protocol Version 4 (TCP/IPv4)' to open its properties.
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.
Click OK to save the changes, close the windows, and then restart the OneDrive application to test the sign-in.

Restart Your Network Equipment
Power cycling your modem and router can clear temporary routing glitches causing the authentication block.
Verify Service Health and Admin Configuration
For work or school accounts, organization-level configurations or widespread Microsoft outages may cause this specific error.
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. Download and Install: Visit the official WPS website to download and install the free office suite on your device.
- 2. Sign In to WPS Cloud: Create a free account or log in to access your complimentary cloud storage space.
- 3. Save and Sync: Easily save your documents directly to WPS Cloud for seamless, error-free access across all your devices.

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.




