aspire4evr
aspire4evr

Reputation: 188

Nexus 9 (OS -6) adb connection over tcp not Working

After upgrading my device to Marshmallow, I am unable to connect my device on tcpip for wifi debugging (It used to work on Lollipop). IP is my device IP address.

platform-tools>adb connect IP:5555

I am getting below message

unable to connect to IP:5555

I also tried to connect on 7612 port.

Upvotes: 3

Views: 2924

Answers (2)

Iyke
Iyke

Reputation: 47

Try the following

  1. Make sure that Aggressive Wi-Fi to Cellular handover under Networking section in the device's developer options is turned off.
  2. ping continuously from your pc to the device to make sure it's not in network idle mode ping -t 192.168.1.10 (windows cmd), unlock the device and even try to surf to some website just to make it get out of the network idle.
  3. If ping doesn't work, turn off / on Android Wifi and go back to step 2.
  4. When it replies to the ping, connect it via usb, and:

    adb usb

    adb tcpip 5555

    adb connect 192.168.10.1:5555

  5. In case it's still not connected, try to switch the usb connection mode as MTP / PTP / Camera while the device is connected through usb and repeat these steps over again...

    If the above points are not working please try running adb as admin. For Ubuntu -

    sudo adb start-server as stated here

Upvotes: 0

SanSolo
SanSolo

Reputation: 2373

5555 is the port number which is not used while connecting. Connection takes place in to steps:

  1. Set port on which connection is to be stablished(in this case 5555)
  2. Connect to the device using it's IP address.

So let's say your device IP is 192.168.1.1 and you want to connect over port 5555,

  1. adb tcpip 5555
  2. adb connect 192.168.1.1

Upvotes: 2

Related Questions