Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to connect to your device from terminal using adb commands [closed]

While searching for

debug Android applications over Wi-Fi

I came across the plugin - 'Android WiFi ADB' available in Android studio.

When I tried to install the plugin, Android Studio suggested 'WiFi ADB Ultimate'.

Or is it better to connect with terminal? If Yes, how?

Kindly help.

like image 975
Prabs Avatar asked Oct 12 '25 19:10

Prabs


1 Answers

I felt connecting your device with terminal using adb commands is more helpful than these plugins.

Steps:

  1. You need to connect your device to your computer via USB cable. Make sure USB debugging is working. You can check if it shows up when running adb devices

enter image description here

  1. Run adb tcpip 5555

enter image description here

  1. Disconnect your device (remove the USB cable).

  2. Go to the Settings -> About phone -> Status to view the IP address of your phone.

  3. Run adb connect < IP address of your device > :5555

enter image description here

  1. If you run adb devices again, you should see your device.

enter image description here

Now you can execute adb commands or use your favorite IDE for android development - wireless!

Credits / Reference: https://futurestud.io/tutorials/how-to-debug-your-android-app-over-wifi-without-root

like image 125
Prabs Avatar answered Oct 14 '25 13:10

Prabs