- Set your terminal path to platform-tools path which is in SDK.
C:\Users\%username%\AppData\Local\Android\sdk\platform-tools
- Connect your device with USB.
- After that add below line in the terminal.
-->for checking whether your device is connected or not
adb devices
-->this gives you this kind of response if it is connected
List of devices attached
9153c6a4 device
--> please be sure that your device and your computer connected to same wifi or network
--> after that write
adb shell setprop service.adb.tcp.port 5555
-->then press enter and write this
adb tcpip 5555
-->press enter and get you device ip and add this line
adb connect 192.168.0.1:5555
192.168.0.1 is my device ip
-->this connect your device using wifi