adb over wifi

341 views
Skip to first unread message

guru

unread,
Sep 6, 2010, 10:45:50 AM9/6/10
to android-porting
HI all

I am trying to run adb over wifi.

from source what I got is, I need to follow below setps

netcfg
get the ip address of phone say it is 192.168.100.4

on PC
export ADBHOST=192.168.100.4

Dont connect USB cable.

adb push <any file> /sdcard/

this will transfer over wifi

I followed these steps, then too it is not showing device and unable
to connect to it.

whether I missed any steps above.

Thanks
Gururaja B O

Xu Wang

unread,
Sep 6, 2010, 11:52:39 AM9/6/10
to guru....@gmail.com, android-porting
Hi Gururaja,

I met similar issue before.  Google says need to:

setprop service.adb.tcp.port 5555

before running adbd, to make adbd running in network mode. It's running in usb mode by default.

Practically, I found installing the app adbWireless from the market works.

BR,
Xu


PREMRAJ SV

unread,
Sep 6, 2010, 1:24:12 PM9/6/10
to xu4...@gmail.com, guru....@gmail.com, android-porting
hello all,
            I am started with adding external gsm modem with hawkboard. can any one give me a guide how to work with gsm modem and adb, AT commands. thank you.

Oliver

unread,
Sep 6, 2010, 8:42:09 PM9/6/10
to android-porting
I think you should at first create a connection between your device &
your computer.

guru

unread,
Sep 7, 2010, 12:12:31 AM9/7/10
to android-porting
Xu Wang,

I want to use adb only to access the phone, because using other app is
making my phone slow.

did you able to access phone after setting this property and using the
procedure that I mentioned above?.

Thanks
Gururaja B O

On Sep 6, 8:52 pm, Xu Wang <xu4w...@gmail.com> wrote:
> Hi Gururaja,
>
> I met similar issue before.  Google says need to:
>
> setprop service.adb.tcp.port 5555
>
> before running adbd, to make adbd running in network mode. It's running in
> usb mode by default.
>
> Practically, I found installing the app adbWireless from the market works.
>
> BR,
> Xu
>
> On 6 September 2010 22:45, guru <guru.nav...@gmail.com> wrote:
>
> > HI all
>
> > I am trying to run adb over wifi.
>
> > from source what I got is, I need to follow below setps
>
> > netcfg
> > get the ip address of phone  say it is 192.168.100.4
>
> > on PC
> > export ADBHOST=192.168.100.4
>
> > Dont connect USB cable.
>
> > adb push <any file> /sdcard/
>
> > this will transfer over wifi
>
> > I followed these steps, then too it is not showing device and unable
> > to connect to it.
>
> > whether I missed any steps above.
>
> > Thanks
> > Gururaja B O
>
> > --
> > unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsu...@googlegroups.com>
> > website:http://groups.google.com/group/android-porting

Xu Wang

unread,
Sep 7, 2010, 12:30:22 AM9/7/10
to guru....@gmail.com, android-porting
No. I didn't try it since the app works.

I guess you can type below in terminal window and let us know the result:

netstat
su
adbd stop
setprop service.adb.tcp.port 5555
adbd start
netstat

check if some process starts listen on port 5555 after adbd restarts

BR
xu

guru

unread,
Sep 7, 2010, 3:14:26 AM9/7/10
to android-porting
Xu Wang,

after setting property service.adb.tcp.port, it started working over
wifi.

Thanks
Gururaja B O

On Sep 7, 9:30 am, Xu Wang <xu4w...@gmail.com> wrote:
> No. I didn't try it since the app works.
>
> I guess you can type below in terminal window and let us know the result:
>
> netstat
> su
> adbd stop
> setprop service.adb.tcp.port 5555
> adbd start
> netstat
>
> check if some process starts listen on port 5555 after adbd restarts
>
> BR
> xu
>
> > <android-porting%2Bunsu...@googlegroups.com<android-porting%252Buns...@googlegroups.com>
>
> > > > website:http://groups.google.com/group/android-porting
>
> > --
> > unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsu...@googlegroups.com>
> > website:http://groups.google.com/group/android-porting

Gururaj BO

unread,
Sep 8, 2010, 4:47:32 AM9/8/10
to kavitha bk, android-porting
Hi,

Check with netcfg command and see to which IP your wifi is connected

and set service.adb.tcp.port property to 5555.

then connect from your laptop adb connect <IP>:<port no>

then give adb shell.

This worked for me.

Regards
Gururaja B O

On Wed, Sep 8, 2010 at 11:17 AM, kavitha bk <bk.ka...@gmail.com> wrote:
Hi GuruRaja
I was able to set the static IP on the device and laptop and connect to wifi and
my netstatus showed
Proto Recv-Q Send-Q Local Address          Foreign Address        State
tcp        0      0 127.0.0.1:7777         0.0.0.0:*              LISTEN
tcp        0      0 127.0.0.1:7203         0.0.0.0:*              LISTEN
tcp        0      0 127.0.0.1:5037         0.0.0.0:*              LISTEN
tcp        0      0 0.0.0.0:5555           0.0.0.0:*              LISTEN
udp        0      0 0.0.0.0:51274          0.0.0.0:*
 
But my from my laptop wen i giv adb push <file> /sdcard
No device found error is comin
Any idea y its happening?
 
Thanks and Regards,
Kavitha


 

kavitha bk

unread,
Sep 8, 2010, 1:47:54 AM9/8/10
to guru....@gmail.com, android-porting
Hi GuruRaja
I was able to set the static IP on the device and laptop and connect to wifi and
my netstatus showed
Proto Recv-Q Send-Q Local Address          Foreign Address        State
tcp        0      0 127.0.0.1:7777         0.0.0.0:*              LISTEN
tcp        0      0 127.0.0.1:7203         0.0.0.0:*              LISTEN
tcp        0      0 127.0.0.1:5037         0.0.0.0:*              LISTEN
tcp        0      0 0.0.0.0:5555           0.0.0.0:*              LISTEN
udp        0      0 0.0.0.0:51274          0.0.0.0:*
 
But my from my laptop wen i giv adb push <file> /sdcard
No device found error is comin
Any idea y its happening?
 
Thanks and Regards,
Kavitha


 
On Tue, Sep 7, 2010 at 12:44 PM, guru <guru....@gmail.com> wrote:

kavitha

unread,
Sep 8, 2010, 2:05:07 AM9/8/10
to android-porting
Hi GuruRaja
I was able to set the static IP on the device and laptop and connect
to wifi and
my netstatus showed
Proto Recv-Q Send-Q Local Address Foreign Address
State
tcp 0 0 127.0.0.1:7777 0.0.0.0:*
LISTEN
tcp 0 0 127.0.0.1:7203 0.0.0.0:*
LISTEN
tcp 0 0 127.0.0.1:5037 0.0.0.0:*
LISTEN
tcp 0 0 0.0.0.0:5555 0.0.0.0:*
LISTEN
udp 0 0 0.0.0.0:51274 0.0.0.0:*

But from my laptop wen i giv adb push <file> /sdcard
No device found error is comin

Can u please guide how to proceed further

Thanks and Regards,
Kavitha
> > > > > unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsubscribe@­googlegroups.com>
> > > <android-porting%2Bunsu...@googlegroups.com<android-porting%252Bunsubsc­ri...@googlegroups.com>
>
> > > > > website:http://groups.google.com/group/android-porting
>
> > > --
> > > unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsubscribe@­googlegroups.com>
> > > website:http://groups.google.com/group/android-porting- Hide quoted text -
>
> - Show quoted text -

kavitha

unread,
Sep 8, 2010, 2:35:14 AM9/8/10
to android-porting, android...@googlegroups.com


Hi GuruRaja
I was able to set the static IP on the device and laptop and connect
to wifi and
my netstatus showed
Proto Recv-Q Send-Q Local Address Foreign Address
State
tcp 0 0 127.0.0.1:7777 0.0.0.0:*
LISTEN
tcp 0 0 127.0.0.1:7203 0.0.0.0:*
LISTEN
tcp 0 0 127.0.0.1:5037 0.0.0.0:*
LISTEN
tcp 0 0 0.0.0.0:5555 0.0.0.0:*
LISTEN
udp 0 0 0.0.0.0:51274 0.0.0.0:*

But from my laptop wen i giv adb push <file> /sdcard
No device found error is comin
Can Please guide me further

Thanks and Regards,
Kavitha
> > > > > unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsubscribe@­googlegroups.com>
> > > <android-porting%2Bunsu...@googlegroups.com<android-porting%252Bunsubsc­ri...@googlegroups.com>
>
> > > > > website:http://groups.google.com/group/android-porting
>
> > > --

Gururaj BO

unread,
Sep 8, 2010, 9:44:21 AM9/8/10
to bk.ka...@gmail.com, android-porting
Hi Kavitha


Phone side:
enable wifi
using serial cable go to putty and from there you insmod adb module.
setprop ....tcp  5555
adbb&

netstat
get IP of wifi interface

PC side
export ADBHOST=<IP of wifi interface>
adb connect <Ip of wifi interface>:5555

it should connect
this is what I followed

regards
Gururaja B O

--

kavitha bk

unread,
Sep 13, 2010, 5:02:43 AM9/13/10
to Gururaj BO, android-porting
Hi
 
If i try connecting adb over wifi using adbwireless or adb over wifi apks
it shows a warning
"YOU NEED A ROOTED PHONE"

but i get # prompt in my adb shell and i made changes in init.rc and default.prop.
 
But still it din work...
 
My default.prop
 
.ro.secure=0
ro.debuggable=1
persist.service.adb.enable=1
 
Can u share ur init.rc and netstat when the port 5555 is listening for connections....
 
Regards,
Kavitha
Reply all
Reply to author
Forward
0 new messages