Cast feature not working after upgrade to Windows 11

Dan_7777 20 Reputation points
2025-03-18T08:31:40.69+00:00

Just upgraded from Windows 10 to 11.

The wireless cast feature to the upgraded PC is no longer working. There are no error messages, and the device I am casting from seems to think it was successful and that the display was extended.

However the device I am casting to (Win 11 upgraded PC) just continues with the blue screen "xxx is about to project".

I have re-installed the Wireless Display app.

Also followed instructions from here: https://answers.microsoft.com/en-us/windows/forum/all/wireless-display-couldnt-be-installed-error/ed185977-748e-4437-98bd-31550059fd97

I have found that if I add a firewall rule allowing all UDP traffic from the casting devices source IP address, then it works.

I tried to lock this rule down to just the WUDFHost.exe, but it does not work.

Therefore I don't know what exactly is missing in the UDP firewall rules.

I guess I could leave the UDP allow rule in place for that one specific source IP address. But I would prefer not to.

Any advice is appreciated.

Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2025-03-20T07:41:18.3466667+00:00

    Hello,

    Thank you for posting in Microsoft Q&A.

    Based on the description, I understand your question is related to Cast feature not working after upgrade to Windows 11.

    Open Device Manager. Expand Network adapters and Display adapters. Right-click on your network and display adapters and select Update driver.

    Open Settings. Go to Network & Internet > Advanced network settings > Advanced sharing settings. Turn on Network discovery and File and printer sharing for both private and public networks.

    Press Win + R and type dxdiag and press Enter. Click on Save All Information and save the DxDiag file. Open the DxDiag file and search for Miracast. Ensure it says Available with HDCP.

    Open Windows Defender Firewall with Advanced Security. Click on Inbound Rules and then New Rule. Select Port and click Next. Choose UDP and specify the port range used by the Wireless Display feature (e.g., 1024-65535). Allow the connection and apply the rule to both Private and Public profiles.

    Have a nice day.

    Best Regards,

    Molly

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Sumit 1,161 Reputation points Volunteer Moderator
    2025-03-18T14:35:58.1833333+00:00

    Hi,

    Let us start with the basics.

    Does DXDIAG report Miracast is ON?

    The issue with the wireless cast feature on your upgraded Windows 11 PC appears to be related to firewall settings blocking necessary UDP traffic. Here are steps you can take to resolve the problem without relying on a broad UDP allow rule:

    1. Ensure Required Ports Are Open: Miracast requires specific ports to be open for communication. Add firewall rules for the following ports:
      • UDP Port 5353: Used for multicast DNS (mDNS).
      • UDP and TCP Port 7236: For Wi-Fi Direct control.
      • TCP Port 7250: For Miracast packet listening.
    2. Firewall Rule for WUDFHost.exe: Create a targeted firewall rule allowing inbound and outbound traffic for C:\Windows\System32\WUDFHost.exe using the above ports. This ensures Miracast-related traffic is not blocked.
    3. Verify Wireless Display App Installation: Ensure the Wireless Display app is installed on your Windows 11 PC. You can install it via Settings > Apps > Optional Features > Add a Feature > Wireless Display
    4. Check Network Configuration:
      • Ensure both devices are connected to the same Wi-Fi network.
      • Disable AP isolation on your router if enabled, as it can block peer-to-peer connections required by Miracast.
    5. Update Drivers:
      • Update your network and display drivers via Device Manager to ensure compatibility with Windows 11.
    6. Test Firewall Adjustments: If adding specific rules doesn't resolve the issue, try enabling logging in the firewall settings to identify blocked traffic related to Miracast. Adjust rules accordingly.

    I hope this helps.

    0 comments No comments

  2. Dan_7777 20 Reputation points
    2025-03-18T16:44:21.5966667+00:00

    Hi,

    I created test rules for the ports below but it made no difference:User's image

    I have a predefined rule for WUFDhost.exe belowUser's image

    I duplicated this rule for UDP but also did not make any difference.

    I have enabled logging for dropped packets and successful connections.

    Attached are the results.

    pfirewall Cast failed.txt

    pfirewall Cast successful.txt

    (successful when UDP rule is added for Any port & application)

    Regards

    Dan

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.