1

Here is the steps to connect my Android phone from PC over WiFi:

1.Connect the device and the computer to the same Wi-Fi network
2.Plug the device to the computer with a USB cable to configure the connection
3.On the computer command line type:

adb tcpip 5555

4.On the computer command line type:

adb shell ip addr show wlan0 
#i get the phones ip----192.168.31.86

5.On the computer command line type:

adb connect 192.168.31.86:5555
connected to 192.168.31.86:5555

6.Disconnect the USB cable from the device and check with adb devices

adb devices
List of devices attached
192.168.31.86:5555  offline

Why the status is not online when to disconnect the USB cable from my phone?

2
  • Does your computer has an IP in the same subnet? Can you ping your phone from your PC? Make sure in your WiFi router communication between clients is allowed, a lot of routers disallow this by default.
    – Robert
    Sep 5, 2021 at 4:04
  • FYI, the feature @robert mentioned at the end is called "network isolation" on some routers.
    – Arctiic
    Sep 5, 2021 at 7:57

1 Answer 1

0

I replace 5555 port with other number to solve the issue.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .