connect your phone as emulator
// go to Developer Options and enable wireless debug
// make sure you connected same wifi which your pc connected to.
// open cmd
// go to this path
cd C:\Users\spide\AppData\Local\Android\Sdk\platform-tools\ //terminal path
// you can run this after pairing
adb devices
// you can find ip and port in wireless debug screen
// for example adb pair 192.168.1.5:3360
adb pair ---ip:port
adb connect ---ip:port