Every time I try to cast to pc I am greeted with "Something went wrong, try casting again", and none of the solutions for similar problems I've found worked. The wifi I have has a standard and an "X_5G" option which using either connection doesn't work, but I think it might be the most likely problem.
Same issue with mine. I'm on the same WIFI as my android phone. It makes the initial connecting and tries to connect but I just get that same error message.
I get the same issue when trying to cast to the PC also. It starts to connect. I get the spinning wait prompt then it fails. I've tried edge and chrome same issue. I've also tried turning off the windows firewall. No difference.