I connected my laptop and mobile phone to a Wi-Fi and connected the phone to the laptop with a USB cable and enabled USB debugging on the mobile phone and entered the commands adb tcpip 5555 and adb connect 192.168.1.51:5555 in the cmd of the laptop respectively. And the mobile was successfully connected to the laptop, but when I disconnect the USB cable, the connection is disconnected, and without connecting the cable, the command adb connect... does not work, my Android mobile is 10 and it does not have wireless debugging, I tried using wifi direct as well. Connect, which recognized the laptop but did not connect
Please guide me how to connect my mobile, I want to use for flutter in vscode
adb connect and wifi direct