You are currently viewing Connect android device over wifi for android development without plugin

Connect android device over wifi for android development without plugin

  • Post author:
  • Post category:Utility
  • Post comments:0 Comments
  • Post last modified:September 15, 2022
  • Reading time:2 mins read

Let’s begin with the step-by-step procedure to connect the real device over WiFi. We will do this without any plugins in android studio.

I have been using plugins for some time but facing problems with them. So I want to share a way to use real devices so that you can debug apps in the actual device as needed and it is straightforward and handy to use.

Lets began =>

  1. Add adb to your path variable.
  2. For me C:\Users\User\AppData\Local\Android\Sdk\platform-tools is my adb path and copy that path.
  3. Right-click on ‘My Computer‘ and select ‘Properties‘.
  4. Then click -> ‘Advances system settings -> Environment variables‘ button under the ‘Advanced‘ tab.
  5. Now, Under System variables find ‘Path‘  and press the edit button.
  6. Press new button and paste that.
  7. Open cmd and write  $ adb devices , that will show you the list of connected devices. your device must be connected via a usb cable.
  8. $ adb tcpip 5555 , write it in the cli and it will restart port: 5555.
  9. $ adb connect 192.168.0.102:5555 , you have to specify the port with the ip address of the device. If you could not find the ip address of the device then simply go to the Settings -> About Phone -> Status -> Ip address. You will find the ip address in there.
  10. Now write $ adb devices , now you will see there are two connected devices one is via usb and another is via ip address.

You can use the device over wifi and enjoy.

And for pros, you can use it or modify it

adb connect $(adb shell ip addr show wlan0 | grep 'inet ' | cut -d ' ' -f 6 | cut -d '/' -f 1)

We will discuss so many things on the way to learn. So let’s dive in and stay put with AndroVaid.

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments