5,600,292 Members 35,804 Now Online
XDA Developers Android and Mobile Development Forum

[TUT] ADB over WiFi

Tip us?
 
JeepFreak
Old
(Last edited by JeepFreak; 1st June 2012 at 04:09 PM.)
#1  
JeepFreak's Avatar
Senior Member - OP
Thanks Meter 190
Posts: 681
Join Date: May 2008
Wink [TUT] ADB over WiFi

I thought some people might appreciate the instructions to get adb working over WiF:

Type this in your terminal emulator on your One X:
Code:
su
setprop service.adb.tcp.port 5555
stop adbd
start adbd
(5555 can be whatever you want.)

Then check it with this:
Code:
getprop service.adb.tcp.port
When it returns "5555" then run this command in the terminal (or command prompt) on your computer:
Code:
adb connect 192.168.0.151
Obviously enter your device's IP address in place of 192.168.0.151. Your computer must have adb (duh!) and your phone must be on the same network.

And you should be connected!

To tell the One X to listen for adb on the USB port instead of TCP again, enter this into the terminal emulator:
Code:
su
setprop service.adb.tcp.port -1
stop adbd
start adbd
Or just reboot the phone.

And to tell your computer to use USB for adb instead of TCP:
Code:
adb usb
I would definitely use the USB cable to push large files or even small files that you really don't want to risk corrupting (partition images you plan on dding, etc).

Very importantly, keep in mind, when your phone is listening for adb via WiFi, it's wide open... anybody that that the adb installed and knows your device's IP address can access it without a password. Again, a simple reboot will turn it off though.

HTH,
Billy

PS - Your are appreciated!
The Following 49 Users Say Thank You to JeepFreak For This Useful Post: [ Click to Expand ]
 
rpomponio
Old
#2  
rpomponio's Avatar
Senior Member
Thanks Meter 503
Posts: 1,366
Join Date: Jan 2012
Location: SO. Cali.

 
DONATE TO ME
Quote:
Originally Posted by JeepFreak View Post
I thought some people might appreciate the instructions to get adb working over WiF:

Type this in your terminal emulator on your One X:
Code:
su
setprop service.adb.tcp.port 5555
stop adbd
start adbd
(5555 can be whatever you want.)

Then check it with this:
Code:
getprop service.adb.tcp.port
When it returns "5555" then run this command in the terminal (or command prompt) on your computer:
Code:
adb connect 192.168.0.151
Obviously enter your device's IP address in place of 192.168.0.151. Your computer must have adb (duh!) and your phone must be on the same network.

And you should be connected!

To tell the One X to listen for adb on the USB port instead of TCP again, enter this into the terminal emulator:
Code:
su
setprop service.adb.tcp.port -1
stop adbd
start adbd
Or just reboot the phone.

And to tell your computer to use USB for adb instead of TCP:
Code:
adb usb
I would definitely use the USB cable to push large files or even small files that you really don't want to risk corrupting (partition images you plan on dding, etc).

Very importantly, keep in mind, when your phone is listening for adb via WiFi, it's wide open... anybody that that the adb installed and knows your device's IP address can access it without a password. Again, a simple reboot will turn it off though.

HTH,
Billy

PS - Your are appreciated!
I bet our usb plugs last longer doing things over WiFi. Thanks man


Sent from my HTC One X using XDA
***HTC ONE M7 S-OFF***
 
paxy97
Old
#3  
paxy97's Avatar
Senior Member
Thanks Meter 311
Posts: 635
Join Date: Apr 2012
Location: Belgrade
Many custom ROMs and even some stock firmwares can change from usb to wifi in developer settings. Jellybean has this function built in with android so you dont need root or run any commands from terminal
The Following 2 Users Say Thank You to paxy97 For This Useful Post: [ Click to Expand ]
 
leolawliet
Old
#4  
leolawliet's Avatar
Senior Member
Thanks Meter 1028
Posts: 2,557
Join Date: Aug 2011
Location: New York, NY
Thanks for the tut, this helps out a lot ^_^
Current device: LG Optimus L9 (P769)

ROM: PenberRom5

My work:
 

Quote:
- E739 -
PenberRom1 - CM7 mod
PenberRom2 - PA+AOKP+CM9 mod
LeoDexed - Modded Stock ROM

- P769 -
PenberRom5 - twinnfamous' PACrom JB 4.3.1 with my tweaks + mods
CMX - My modded cm-10.2 ROM from source. Installer is AROMA based.

- Tweaks-
egl patch - Disable CPU Rendering + older build.prop tweaks
Codename LightningBolt - A set of tweaks I put together
 
timmaaa
Old
#5  
timmaaa's Avatar
Recognized Contributor
Thanks Meter 4644
Posts: 9,988
Join Date: Jun 2011
Location: Melbourne

 
DONATE TO ME
Quote:
Originally Posted by leolawliet View Post
Thanks for the tut, this helps out a lot ^_^
Instead of digging up a 13 month old thread by creating a post to say thanks, just hit the thanks button next time please.

Sent from my Evita.
HTC Evita | KarbonKat 4.4.2 1.0-5
S-off | 2.14 | Modified TWRP 2.6.3
Do not PM me asking for assistance, that's what my Q&A thread is for!
 
leolawliet
Old
#6  
leolawliet's Avatar
Senior Member
Thanks Meter 1028
Posts: 2,557
Join Date: Aug 2011
Location: New York, NY
Quote:
Originally Posted by timmaaa View Post
Instead of digging up a 13 month old thread by creating a post to say thanks, just hit the thanks button next time please.

Sent from my Evita.
Already did, just wanted to personally say thanks.
Current device: LG Optimus L9 (P769)

ROM: PenberRom5

My work:
 

Quote:
- E739 -
PenberRom1 - CM7 mod
PenberRom2 - PA+AOKP+CM9 mod
LeoDexed - Modded Stock ROM

- P769 -
PenberRom5 - twinnfamous' PACrom JB 4.3.1 with my tweaks + mods
CMX - My modded cm-10.2 ROM from source. Installer is AROMA based.

- Tweaks-
egl patch - Disable CPU Rendering + older build.prop tweaks
Codename LightningBolt - A set of tweaks I put together
 
timmaaa
Old
#7  
timmaaa's Avatar
Recognized Contributor
Thanks Meter 4644
Posts: 9,988
Join Date: Jun 2011
Location: Melbourne

 
DONATE TO ME
Pressing the button is thanks enough, it's frowned upon to dig up such an old thread with a new post.

Sent from my Evita.
HTC Evita | KarbonKat 4.4.2 1.0-5
S-off | 2.14 | Modified TWRP 2.6.3
Do not PM me asking for assistance, that's what my Q&A thread is for!
The Following User Says Thank You to timmaaa For This Useful Post: [ Click to Expand ]
 
glossywhite
Old
#8  
Member
Thanks Meter 11
Posts: 33
Join Date: Dec 2009
Quote:
Originally Posted by timmaaa View Post
Pressing the button is thanks enough, it's frowned upon to dig up such an old thread with a new post.

Sent from my Evita.
So tell yourself to smile upon it; we're humans, not automatons; they were being polite, and that's a lovely thing to be in this age - you're not compelled to "frown upon it". You know, "netiquette" is not law, and humanity is a lovely thing to see
The Following User Says Thank You to glossywhite For This Useful Post: [ Click to Expand ]
 
droidparanoid
Old
#9  
Junior Member
Thanks Meter 0
Posts: 2
Join Date: Feb 2014
Thumbs down i've now seen it all...

Quote:
Originally Posted by glossywhite View Post
So tell yourself to smile upon it; we're humans, not automatons; they were being polite, and that's a lovely thing to be in this age - you're not compelled to "frown upon it". You know, "netiquette" is not law, and humanity is a lovely thing to see
It makes me happy to see some actual humanity around these stuffy as of late parts! It's at best troubling and at worse ungrateful to have a policy in place that forbids a friendly human ”thanks". When someone feels the need to let that policy actually change their own personal level of gratitude there is something very bad happening.

A button can in no way replace a real human emotion. It provides a very impersonal response with very very little meaning.

I know there's probably a policy in place around here forbidding disagreement or self-expression against something that when looked at through other eyes is absolutely without meaning or need, but as a human I feel the need to stand up for my beliefs.

Thank you for your time.
 
glossywhite
Old
#10  
Member
Thanks Meter 11
Posts: 33
Join Date: Dec 2009
Quote:
Originally Posted by droidparanoid View Post
It makes me happy to see some actual humanity around these stuffy as of late parts! It's at best troubling and at worse ungrateful to have a policy in place that forbids a friendly human ”thanks". When someone feels the need to let that policy actually change their own personal level of gratitude there is something very bad happening.

A button can in no way replace a real human emotion. It provides a very impersonal response with very very little meaning.

I know there's probably a policy in place around here forbidding disagreement or self-expression against something that when looked at through other eyes is absolutely without meaning or need, but as a human I feel the need to stand up for my beliefs.

Thank you for your time.
AMEN!!!

God bless you my friend; the world's in a mess, and people are increasingly becoming entrenched in "the way it is" - well not me. Who wants to "fit in" and just be passive and live as if they're "enduring" life? Some people will NEVER like you - I found that is the case, and some people WILL NEVER have anything good to say. Well, that's up to them - for me, I AM ALWAYS going to SAY thank you, and people can just dislike that all they want - it's how I am, and if they "frown upon it", that just shows how lost they are, seriously.

BE NICE TO PEOPLE!!!!!!!

God bless you all

Tags
adb wifi
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes