Android With Xamarin Debugging Over Wifi

Debugging and deploying your app on mobile or tablet over wifi or without using a usb cable is very convenient. You don't need to use a usb cable or necessarily place your device near your computer or laptop to perform debugging or deployment.
 
Note You must have installed Xamarin for Android with Visual Studio 2015 to perform debugging over wifi and
your mobile device must be enabled for usb debugging before performing this exercise.
 
Here are the steps,
  1. Open command prompt with 'run as administrator'.
  2. Connect your mobile device to your computer with usb cable.
  3. Navigate to Android installation folder in command prompt using the following command,"cd C:\Program Files (x86)\Android\android-sdk\platform-tools"
  4. Type "adb tcpip 5555" command.
  5. Find out the IP address of your mobile device and type "adb connect <ipaddress:5555>".
  6. Type "adb devices" and it will return this.

    List of devices attached,
    ipaddress:5555 device  
Now you can disconnect your usb cable and check if the device name has appeared in the Visual Studio device listing dropdown. If it shows your device, your device is now connected over wifi and you are ready to debug.
Ebook Download
View all
Learn
View all