NOTE: Since you are here, I am assuming you already know about basic android development & you have your android development setup ready.
Let’s get started.
First of all, enable developers option on your mobile device.
Now to communicate to your mobile device from your laptop / pc, we will be using Android Debug Bridge (adb). Refer the link to see how you can install adb on your laptop / pc.
Run this command to verify that adb is installed & working properly.
Now, connect your android device to your laptop / pc through wired connection (USB or any other) and set transfer mode to Files Transfer.
Once this is done, open terminal or command prompt or windows power shell on your laptop / pc, type this command.
If all goes well, you should see list of connected devices.
Now, let’s make your android device wirelessly available for development. Type this command to start the adb server on port 5555.
adb tcpip 5555
Now, find out the IP address of the common network on which your mobile device & laptop / pc are connected.
Note: Make sure your mobile and laptop / pc are connected to the same WiFi Network.
Now, type this command to connect to your device wirelessly.
adb connect <your-common-network-ip-address>:5555
Once done, type adb devices . You will see list of devices connected. If all went good, you will notice one device named as per your ip address in the list.
Now, to verify that all is working fine, disconnect your device’s USB (or wired) connection from your laptop / pc and run adb devices again & check if your device is listed.
Source: Medium - Harsh Vardhan Gautam
The Tech Platform