1

I have weird issue with NTT 407 tablet that works on Android 4.1.1. I've switched "USB Debugging" and when I plug USB, adb works fine. But I need it working over Wifi, so I connect to my AP, set static IP 192.168.0.53, make sure it's pingable and then try to switch into TCPIP mode with following command:

adb tcpip 5555

Since this moment if I execute

adb connect 192.168.0.53

it should work without USB cable plugged in. At least My Galaxy S2 and another tablet NTT 807 do. But it doesn't! All I get is:

unable to connect to 192.168.0.53:5555

Another weird thing, "adb connect" command works when I've USB plugged in. And "adb devices" command returns

List of devices attached:
192.168.0.53:5555    device

and everything works well till I unplug the USB cable.

Moreover, when I perform

adb kill-server
adb devices

I get blank space after List of devices attached, even is USB is plugged. I need to execute adb connect 192.168.0.53 again to work with adb.

It seems that TCPIP mode is working, but still over USB cable.

Any ideas how to fix it and make ADB working over WiFi? Tablet is not rooted and I prefer to avoid doing this, because I don't want to lose warranty.

  • 1
    In addition, when I change IP or disable WiFi, "adb connect 192.168.0.53" with plugged USB cable doesn't work, so it seems to use ip protocol, but why the traffic is transmitted via USB cable, but not over Wifi like it should? – Miko Oct 9 '15 at 10:54
0

You need to configure your phone for adb wireless before you can use it. If you don't have root, try ADB Wireless (no root).

If you have root, this is the method I always use for adb wireless. It's worked when adb wireless apps don't. Run these commands as root in a terminal emulator.

# kill adbd
toolbox ps | grep adbd | { read -A i && kill ${i[1]}; }
# set the adb tcp port to 5555
setprop service.adb.tcp.port 5555
# start up adbd
adbd&
# get your Android's local ip
toolbox ifconfig wlan0 | { read -A i && echo ${i[2]}; }

Then on your pc:

# clear out adb connections
adb kill-server
# connect over the default port 5555
adb connect ANDROID_LOCAL_IP

If you have trouble with this, I would try a few things. Update your PC's adb client. Check your PC firewall, if you have one, to make sure either adb has tcp access or port 5555 is open. Check your Android firewall, if you have one, to make sure adb has wifi access. I use this on Windows and Linux.

  • I don't know how ADB Wireless (no root) but all it does, it displays tablet's IP. Moreover the script doesn't work. I'm getting message that "grep: not found" – Miko Oct 12 '15 at 7:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.