Source(s)
- on the phone
- enable developer options
- enable wireless debugging in the developer options
- select “Pair new device with pairing code”
- on the PC
- install ADB
- run
adb pair <IP>:<PORT>
where<IP>
and<PORT>
are the IP address and port shown on the phone - enter the pairing code shown on the phone
- now you can
adb connect <IP>:<PORT>
(note that the port is different from the one used during pairing)