1. First, connect your device with USB cable.
2. Switch adb to listen tcp and connect, replace [ip] with device IP address:
adb tcpip 5555 adb connect [ip]:5555
3. Detach your device from USB cable.
Switch back adb to listen USB:
Auto discovery using ADB:
adb shell ip -f inet addr show wlan0