Here are the steps to debug your Android app from WiFi connection instead of WiFi:
- connect the device to the PC by USB cable