Fix NS_E_REFUSED_BY_SERVER (0XC00D2EE7) fast
Windows Media Player or app can't reach the server. Usually a firewall block or a DNS hiccup. Here's the fix chain.
Start here (30 seconds)
This error pops up when Windows Media Player or an app tries to stream from a server that's blocking the connection. The culprit is almost always a firewall or a stale DNS entry. Let's rule those out first.
Check your firewall
Windows Defender Firewall loves to block RTSP (port 554) by default. That's the protocol Windows Media Player uses for streaming.
- Open Control Panel > Windows Defender Firewall > Allow an app or feature through the firewall.
- Click Change settings (you'll need admin rights).
- Scroll down and find Windows Media Player. Make sure both Private and Public boxes are checked.
- If it's not listed, click Allow another app and browse to
C:\Program Files\Windows Media Player\wmplayer.exe. - Click OK and try your stream again.
Still broken? Move to the next step.
Clear DNS cache
Stale DNS entries can point to a dead server. Fix that in 10 seconds:
ipconfig /flushdns
Run that in an admin Command Prompt (right-click Start > Command Prompt (Admin) or Terminal (Admin)). Then try the stream again.
Moderate fix (5 minutes)
Disable IPv6 temporarily
Some older streaming servers don't play nice with IPv6. This is a common gotcha.
- Open Control Panel > Network and Sharing Center > Change adapter settings.
- Right-click your active network adapter and choose Properties.
- Uncheck Internet Protocol Version 6 (TCP/IPv6).
- Click OK and restart your media app.
If that fixes it, you can leave IPv6 disabled. Most home networks don't need it anyway. If it doesn't help, re-enable it and move on.
Check proxy settings
A misconfigured proxy can cause the server to refuse the connection. Especially if you're on a corporate network that uses a proxy.
- Open Internet Options (search for it in Start).
- Go to the Connections tab and click LAN settings.
- Uncheck Use a proxy server for your LAN unless you know your network requires one.
- Also uncheck Automatically detect settings — this can cause random delays and failures.
- Click OK, then try the stream again.
Advanced fix (15+ minutes)
Reset Winsock and TCP/IP stack
If nothing else worked, your networking stack might be corrupted. This happens after malware infections or bad VPN disconnects.
netsh winsock reset
netsh int ip reset
Run both commands in an admin Command Prompt or Terminal. Restart your PC after. This wipes out custom network settings, so you'll need to reconfigure any static IPs or proxy setups.
Check the server URL manually
Sometimes the error is legit — the server is actually down or the URL is wrong. Use a tool like VLC or telnet to verify.
telnet stream.example.com 554
If the connection hangs or says Could not open connection, the server is blocking you or is offline. Try the same URL in VLC (open network stream). If VLC works but Windows Media Player doesn't, the problem is on the client side — try the registry fix below.
Registry tweak (last resort)
On some Windows 10/11 builds, the default RTSP handler is broken. You can force Windows Media Player to use a different network transport.
- Open Regedit (type regedit in Start).
- Navigate to
HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Preferences. - Create a new DWORD (32-bit) value named
EnableRTSP. - Set it to
0to disable RTSP (forces HTTP streaming, which works on more firewalls). - Close regedit and restart Windows Media Player.
This fix is a hack. It trades protocol purity for reliability. Only use it if you're sure the server supports HTTP streaming (most public streams do).
When to give up
If none of these work, the server might be actively blocking your IP range or region. Try a VPN to test. If the stream works through a VPN, you've found the real issue — the server's firewall hates your location. That's not something you can fix from your end.
Note: This error code (0XC00D2EE7) is identical to the older NS_E_REFUSED_BY_SERVER from Windows Media SDK. Same fix chain applies to Windows 7 through 11.
Was this solution helpful?