Fix OneDrive Error 0x8004DE40: Cannot Open Word Documents Without VPN
Question details
The user cannot access Microsoft 365 or open Word documents due to OneDrive error 0x8004DE40, unless connected via a VPN or mobile hotspot.

- Product
- Microsoft OneDrive and Microsoft 365
- Device & OS
- not provided
- Scenario
- Attempting to open locally synchronized Word documents or accessing the Microsoft 365 website on a standard network connection.
- Observed behavior
- OneDrive displays error code 0x8004DE40 and DOCX files fail to open on the web. The connection is restored only when switching to a phone hotspot or a VPN.
Verify that your internet connection is active and temporarily disable any third-party antivirus or firewall software to determine if they are blocking Microsoft 365 services.
Reset Network and Proxy Settings
Since the connection works via VPN or hotspot, resetting your local network and proxy configurations can resolve blocks preventing access to Microsoft servers.
Error 0x8004DE40 typically indicates that OneDrive is unable to connect to the cloud. When a VPN or mobile hotspot bypasses this issue, it points directly to local network restrictions, improper proxy settings, or DNS issues.
Press Windows Key + I to open Settings. Go to Network & Internet > Proxy. Under Manual proxy setup, toggle off 'Use a proxy server'.
Click the Start menu, type 'cmd', right-click Command Prompt, and select 'Run as administrator'. Type 'netsh winsock reset' and press Enter. Restart your computer.
In the administrative Command Prompt, type 'ipconfig /flushdns' and press Enter to clear outdated local network cache that might be routing Microsoft 365 traffic incorrectly.

Check Microsoft 365 Service Status and Contact Network Admin
If resetting your network does not work, the restriction might be enforced by your ISP or corporate network administrator.
Edit Word Documents Offline Seamlessly with WPS Office
When network restrictions or OneDrive sync errors prevent you from accessing Microsoft 365, WPS Office provides a reliable desktop alternative. It allows you to open, edit, and save your documents locally without requiring a constant cloud connection or VPN.
- 1. Download and Install: Get WPS Office for free from the official website and install it on your computer.
- 2. Open Your Document: Right-click the local .docx file that OneDrive is failing to open and select 'Open with WPS Office'.
- 3. Edit Offline: Make your necessary edits and save the file locally, completely bypassing any network or VPN requirements.

Frequently Asked Questions
What does OneDrive error code 0x8004DE40 mean?
Error 0x8004DE40 means OneDrive is having trouble connecting to the cloud. It is usually caused by network connection problems, restrictive firewalls, or incorrect proxy settings blocking access to Microsoft servers.
Why can I only open Microsoft 365 documents when connected to a VPN?
If documents only open via a VPN or mobile hotspot, your primary Internet Service Provider (ISP) or local network firewall is likely blocking the specific IP addresses or ports required by Microsoft 365.
How can I access my Word documents if OneDrive refuses to connect?
If the files are locally synchronized (showing a green check mark), you can open them offline using a desktop application like WPS Office or Microsoft Word desktop, rather than relying on the Microsoft 365 web version.




