Problem with adb in WSL 2
I couldn't get adb in WSL 2 to access the server running in Windows, seems like WSL 2 is more a VM than a subsystem therefore they don't share IP/interface. The workaround was found in this issue: WSL 2 cannot access windows service via localhost:port
Run this on the Windows side:
adb -a -P 5037 nodaemon server
and this on WSL2:
adb kill-server
export ADB_SERVER_SOCKET=tcp:192.168.100.5:5037
adb devices
Replace the IP with your windows IP.