Wednesday 8 June 2016

Debug Android App Over WiFi without USB Cable | Android App Development

Hello Guys...
          Today I am gonna show you how can you guys debug your android app over WiFi.
1. First of all connect your PC and the Phone to the same WiFi network.
2. Open the command prompt of Windows.
3. Connect your Phone with the USB cable. (Unfortunately we have to do this for 1st time)
        Don't forget about Debugging mode.
4. Go to your sdk location and then platform-tools.
        and type the command "adb devices"

  
A list will appear with the Device connected.

*** Important ***
       You should have only one device connected in debugging mode.

5. Type the  command "adb tcpip 5555" [you can put any number in place of 5555 (port address)]
     the Android debug Bridge will restart in TCP mode on your Given Port.

6. Goto phone settings > About Phone > Status
          and check your phone's IP address.
7. Type command "adb connect  <IP Address of phone(host)>:<port number>
          In my case: adb connect 192.168.43.106:5555
          adb will get connect to that device.


success ! type the command "adb devices" and see the result. :]

*** But If now you pull out the Cable from the phone or PC, Both the device will get disconnected.

it that case Just repeat the step 7. That's all.

Hope it Helps. Thanks for reading. Happy Coding :]