I was able to connect finally by using this method. Note that no one helped me even after offering $100 on the discord.
.\adb netstat -aon | findstr :5037
- verify none using same port
Enable Wireless Debugging on your phone under Developer Options and choose "Pair device with pairing code." Note the IP address, pairing port, and code.
Pair the Device: Use ADB on your computer to pair the phone with the given IP and pairing port, entering the pairing code when prompted.
Connect to Device: After pairing, connect to the phone using the IP address and pairing port.
Verify Connection: Check that the device appears in the ADB device list. You can now use ADB wirelessly.