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