That error code is a punch in the gut when you're halfway through a stream or just trying to play a local file. The fix is quick, but it touches the registry, so follow the steps exactly.
The Fix: Reset the Packet Size Registry Value
This error shows up when the Windows Media Player or Windows Media Server has a packet size value that's either too large, too small, or corrupted. The registry key that controls this is in the Windows Media parameters. Here's the exact path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Media\WMServer
We're going to delete the bad value and let the system rebuild it with the default. Don't worry, this won't break anything else.
- Press Windows + R, type
regedit, and hit Enter. If you see a UAC prompt, click Yes. - In Registry Editor, paste this into the address bar and press Enter:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Media\WMServer - On the right side, look for a value named
MaxPacketSize(orDefaultPacketSizeon some builds). Right-click it and choose Delete. Confirm when asked. - If you don't see either value, look for a folder named
WMServerand expand it. Inside, check subkeys likeNetworkorMulticast. Delete any value that says PacketSize. - Close Registry Editor.
- Press Ctrl + Shift + Esc to open Task Manager. Go to the Services tab, find Windows Media Player Network Sharing Service (service name: WMPNetworkSvc), right-click it, and select Restart. If you don't see it, open an admin Command Prompt and run:
net stop WMPNetworkSvc && net start WMPNetworkSvc - Try playing the file or stream again.
After you delete the value, the system recreates it with the default packet size (usually 1452 bytes for multicast or 8192 for TCP). That's why this works — the bad value is gone, and the default is sane.
Why This Happens
The packet size is negotiated between the media server and the player. If your network adapter, router, or VPN changes the MTU (maximum transmission unit) — say you switch from Ethernet to Wi-Fi, or connect through a VPN that has a smaller MTU — the old packet size is now too big. Windows Media doesn't always renegotiate cleanly. It just throws this error.
I've seen this on Windows 10 and 11, mostly with IPTV or multicast streams. A common trigger: you're watching a live stream, your laptop sleeps, then wakes up on a different network. The stored packet size is stale, and the player chokes.
Less Common Variations
1. Third-Party Media Servers
If you're running a third-party server like TVersity or Plex, the error might come from their config file instead of the registry. Check their settings for a packet size field. Set it to 1452 if you're on multicast, or remove it entirely to let the software auto-detect.
2. Group Policy Override
In corporate environments, IT might have set a packet size via Group Policy. The registry key won't stick because policy re-applies it. Look for this policy path:
Computer Configuration → Administrative Templates → Windows Components → Windows Media Player → Networking
If there's a setting for "Maximum UDP packet size," set it to Not Configured. Then delete the registry value again and restart the service.
3. Corrupted Media Library
Sometimes the error appears even after the registry fix — that points to a corrupted library database. Reset the Windows Media Player library by running this in an admin Command Prompt:
wsreset.exe
That clears the cache for the Store and Media Player in Windows 10/11. Reopen the player and try again.
Prevention Going Forward
To keep this from coming back, match your network MTU to the packet size. Check your router's MTU setting — most home routers use 1500. If you use a VPN, that often drops to 1400 or less. When you connect through a VPN, manually set the player's packet size to 1400 in the registry (create the DWORD value you deleted earlier):
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Media\WMServer\MaxPacketSize = 1400 (DWORD, decimal)
Also, avoid changing networks while a stream is active. If you have to switch from Ethernet to Wi-Fi, close the player first, then reconnect. That little habit has saved me more than once.
If you're on Windows 11 and the error persists, update the Media Feature Pack via Settings → Apps → Optional Features. That fixes a few codec-related bugs that look identical to this error.