Wireless debugging over Wi-fi

Sachin Kumar
3 min readOct 14, 2018

This article is about debugging the android app over the wi-fi network without any need for USB data cable but we need it once for establishing the connection.

For this connection establishment, both android phone and our laptop/PC should be connected to the same wi-fi network.

So, without any further due let’s get started with the following steps:

Step 1: Go to your sdk path and open the platform-tools folder via the command listed in the snapshot below:

Step 2: Now, type the following command:

Oops, adb not found and I am on mac so gonna follow the following steps:

  • Install homebrew : type ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Type password of your OS and wait for “installed successfully” message.
  • Install adb : type brew cask install android-platform-tools

It will show the following message:

Step 3: Now, connect your android phone with USB data cable and type “adb devices”

It has listed my attached device to my macbook.

Step 4: We are now running the same command that we have already run in Step 2 i.e. “adb tcpip 5555”

We can see no adb not found command error, it has been resolved in the above steps.

Step 5: We are now running the command to connect android phone to the wi-fi network where our machine is already connected.

adb connect “ip address of the phone”

It has connected successfully and we can remove the phone from the attached data cable now.

In order to verify it let’s go to Android Studio and run the application.

As we can see our connected device is listed in “Connected Devices”. Hence, we are good to go with wireless debugging.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Sachin Kumar
Sachin Kumar

Written by Sachin Kumar

Senior Java Backend Dev | Expertise in Java Microservices, Spring Boot Framework & Android apps development.

No responses yet

Write a response