Remote connecting to gui from WSL2

What have you tried: typing kex --esm -s into the kali linux terminal, updating kali linux, typing kex --sound, kex

What is the error: Remote Desktop can’t connect to the remote computer for one of these reasons:

  1. Remote access to the server is not enabled
  2. The remote computer is turned off
  3. The remote computer is not available on the network
    Make sure the remote computer is turned on and connected to the network, and that remote
    access is enabled.

Error code: 0x204
Extended error code: 0x0
Timestamp (UTC): 03/06/25 03:35:46 PM

What device is this on: my desktop

I’ve reinstalled Windows and tried agai,n and this time I couldn’t even get kex installed because it says sudo apt update
Ign:1 http://https.kali.org/kali kali-last-snapshot InRelease
Ign:1 http://https.kali.org/kali kali-last-snapshot InRelease
Ign:1 won’t let me post the rest
Warning: Some index files failed to download. They have been ignored, or old ones used instead. and sudo apt install -y kali-win-kex
Error: Unable to locate package kali-win-kex. I have tried adding 1 to 2 ses to the sources.list file but no luck

You have to enable remote desktop in Kali before you can connect to it from Windows or other devices;