Connecting QGC to PX4 running in WSL2

I am having difficulties connecting QGroundControl to PX4 which is running in WSL2 and is connected to Airsim using Unreal Engine.

A few months ago I got this working, but I recently changed the networking mode of WSL to mirrored for unrelated reasons. This allowed me to more easily connect applications running in Windows and WSL. Connecting Airsim and PX4 was straightforward as WSL now has access to localhost. But I can’t figure out how to get QGC to connect. I believe I have tried every possible combination of ports in the Airsim settings and custom Comm Links in QGC.

If anyone has any experience with this or can help me in the right direction, that would be great!