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----

5.On the computer command line type:

adb connect
connected to

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

adb devices
List of devices attached  offline

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

  • 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
    Commented Sep 5, 2021 at 4:04
  • FYI, the feature @robert mentioned at the end is called "network isolation" on some routers.
    – Arctiic
    Commented Sep 5, 2021 at 7:57

1 Answer 1


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 .