Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio not connecting my phone over wifi

Pairing devices over wifi is so buggy on this Android studio. Sometimes it refuses to show a QR code, sometimes it shows the code but keeps saying an error occurred while connecting.

Even though my device has been connected several times before, it refuses to connect again. I have to delete the device from the list of devices in device manager of android studio.

Restarting laptop/android studio, phone/ etc resolves it, but I can't keep restarting everything for this stupid piece of software.

Does anyone have a solution for this?

like image 819
Vipin Verma Avatar asked Feb 01 '26 09:02

Vipin Verma


2 Answers

Run: adb connect <IP address>:<Port> in your terminal whenever your mobile fails to connect.

You can find the IP and port in your phone's settings Settings>Developer Option>Wireless Debugging.

Source

like image 118
Youssef Wagih Avatar answered Feb 02 '26 23:02

Youssef Wagih


  1. Step 1:

    adb pair Ip_address:Port

  2. Step 2:

    Enter the Code

If Connected Successfully Ignore the 3rd Step

  1. Step 3:

    adb connect Ip_address:Port

like image 35
Paras Palli Avatar answered Feb 02 '26 23:02

Paras Palli