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-wifi -g
adb-wifi
It'll show QR code and scan it from here
- Go to Developer options from settings
- Select Wireless debugging
- Select Pair device with QR code
- Scan the code and device will be connected