1. Check whether your phone is in debug mode or not.
2. Connect your phone to a laptop or PC via USB.
3. Go to the terminal in your Android studio project.
4. If you can't find it, type in a search (View | Tool Windows).
5. Now, type the command, adb tcpip 5555
6. Then enter the command, adb shell ifconfig or adb shell netcfg.
7. Discount the USB.
8. Find your device IP address in settings and then developer options in ADB over the network.
Enjoy the wifi debugging
https://infobytes.dev/
Company profile: • Infobytes Solutions Software Company Profile