OneDrive Error Codes

Fix OneDrive Connectivity When Connected to a VPN

Maira MehtabMaira Mehtab Nov 14, 2026 869 views

Question details

OneDrive and other online applications lose connectivity when a VPN is enabled but work when it is disconnected.

Fix OneDrive Connectivity When Connected to a VPN
Product
Microsoft OneDrive
Device & OS
not provided
Scenario
The user wants to access and sync OneDrive files while connected to a VPN.
Observed behavior
OneDrive and other online applications may stop connecting when the VPN is active and resume working after it is disconnected.
Before you start

Identify the VPN service or administrator and note any OneDrive error messages. If the VPN is required by your organization, ask your administrator before disconnecting it or changing its settings.

Solution 1Recommended

Compare OneDrive Connections With and Without the VPN

Use this test to determine whether the VPN connection is associated with the connectivity problem.

1
Test with the VPN connected

Connect to the VPN, then open OneDrive and try to access or sync a file. Note any error message and whether other online applications also fail.

2
Test without the VPN

If permitted, disconnect the VPN in its app and repeat the same OneDrive test. Reconnect the VPN afterward if your organization requires it.

3
Compare the results

If OneDrive works only when the VPN is disconnected, share both test results and any error messages with the VPN provider or administrator.

Compare OneDrive Connections With and Without the VPN
If both tests fail: If OneDrive also fails without the VPN, the VPN may not be the only cause. Check your internet connection and OneDrive service status before focusing on VPN settings.
Free Microsoft Office alternative

Work With Office Files in WPS Office

WPS Office is a free, lightweight alternative with a familiar interface and compatibility with common Microsoft Office formats, making it easy to move your document work. It does not fix OneDrive or VPN connectivity; cloud access may still depend on your network.

Edit locally available documents while troubleshooting OneDrive connectivityOpen and edit Microsoft Office formats, including DOCX, XLSX, and PPTXUse a familiar interface for a smoother transition from Microsoft OfficeWork with a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why does OneDrive work only when my VPN is off?

The VPN may be affecting DNS resolution or restricting Microsoft 365 traffic. Compare OneDrive access with and without the VPN, then give the results to your VPN provider or administrator.

What should I ask my VPN administrator to check?

Ask the administrator to check VPN DNS settings, traffic restrictions, and access to the Microsoft 365 endpoints used by OneDrive. Include any error messages and the results of your connection tests.

Should I change split-tunneling settings myself?

Only change VPN settings if you are authorized to do so. For a managed work or school VPN, ask the administrator whether a split-tunneling or traffic configuration change is appropriate.

What if OneDrive still fails after I disconnect the VPN?

Check whether other websites and online applications connect, and check OneDrive service status. A failure both with and without the VPN suggests there may be another connectivity or service issue.