On Windows 11 22H2 and later, you can enable "mirrored networking" in your WSL configuration, which means your WSL2 instance will essentially share the same network interface as your Windows host, providing the same IP address.
so to get the ip of the windows host use the below: