adb tcpip 5555
adb connect <your-phone-ip>:5555
stay connect via USB to yours computer
connect to your WIFI network (computer and mobile device both) ->same network
ping DeviceIP (must be have ping to your device)
adb kill-server
adb usbadb tcpip 5555- unplug usb cable (as per @captain_majid 's comment)
adb connect yourDeviceIPadb devices(must be see two device names , one of them is by deviceIP)unplug USB cable