Here is a small tip if you need to use adb over wifi instead of usb.
You need to have initial usb-adb connection
1) in commnad prompt type:
adb tcpip 7777
This will make adb listen on port 7777
2) check your device ip. let’s say it is 192.168.1.100
3) then you can disconnect your device from usb and type:
adb connect 192.168.1.100:7777