From Android 11 Wireless debugging is enabled. In this pair their Android devices with a computer wireless.
This a cli tool which shows QR code and make seamless connection
npm i adb-wifi2 -g
adb-wifi2
It'll show QR code and scan it from here
Or
npx adb-wifi2
- Go to Developer options from settings
- Select Wireless debugging
- Select Pair device with QR code
- Scan the code and device will be connected