DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
View Events Video Library
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Mobile Database Essentials: Assess data needs, storage requirements, and more when leveraging databases for cloud and edge applications.

Full-Stack Observability Essentials: Explore the fundamentals of system-wide observability and key components of the OpenTelemetry standard.

Monitoring and Observability for LLMs: Datadog and Google Cloud discuss how to achieve optimal AI model performance.

Automated Testing: The latest on architecture, TDD, and the benefits of AI and low-code tools.

Related

  • What Developers Need to Know About the Price Checker App
  • The Fundamental Components of Securing a Job as a Software Developer
  • Software Supply Chain Security Checklist
  • Android Cloud Apps with Azure

Trending

  • Supercharge Your Communication With Twilio and Ballerina
  • SQL Query Performance Tuning in MySQL
  • JWT Token Revocation: Centralized Control vs. Distributed Kafka Handling
  • Exploring Different Continuous Integration Servers: Streamlining Software Development
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Deployment
  4. Use ADB Over Wi-Fi Without Extra Application or Software

Use ADB Over Wi-Fi Without Extra Application or Software

Ketan Parmar user avatar by
Ketan Parmar
·
Mar. 28, 14 · Interview
Like (1)
Save
Tweet
Share
57.29K Views

Join the DZone community and get the full member experience.

Join For Free

Image Source: http://techbeasts.com/wp-content/uploads/2013/08/Android-Developer2.png

Normally developers use USB cables to connect Android devices with computers to debug and for other purposes.

What are the problems with USB ?

  1. You can not move around with the device (some app require to move around for testing)
  2. Cable damage
  3. USB socket of Android device can be damaged

What is solution of above problems ?

Normally, developers use ADB over USB, but it is also possible to use ADB over Wi-fi. The following steps explain how to use ADB over Wifi

Prerequisites

Android device and computer should be connected in same network.  

Step 1: Connect Android device with USB cable to computer

Step 2: Use following command in terminal to make sure adb is running in USB mode.

 $adb usb
restarting in USB mode
Connect to the device over USB.

Step 3: Execute following command in terminal to make sure adb identify/list gets connected with the device.

 $adb devices

Step 4: Change adb mode from USB to tcpip using following command.

 $adb tcpip 5555
restarting in TCP mode port: 5555

Step 5: Now, adb is running over TCP/IP mode, Let’s find IP address of Android device. Go to Settings in Android device -> About -> Status -> IP address. note down the IP address of connected Android Device.

Step 6: Use following command to connect ADB with IP address

 $adb connect #.#.#.#
connected to #.#.#.#:5555

Step 7: Now adb is working over Wi-fi, You can remove USB cable from Android device.

Step 8: To confirm adb is working over Wi-fi and your device is still connect. you can use following command

 $adb devices
#.#.#.#:5555 device

You’re now ready to go!, Enjoy ADB over Wi-fi. Note: Use following command to change ADB mode to USB

 $adb usb


USB application Android (robot) Software

Published at DZone with permission of Ketan Parmar, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • What Developers Need to Know About the Price Checker App
  • The Fundamental Components of Securing a Job as a Software Developer
  • Software Supply Chain Security Checklist
  • Android Cloud Apps with Azure

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: