Você está na página 1de 5

1/4/2014 [TUT] ADB over WiFi - xda-developers

http://forum.xda-developers.com/showthread.php?t=1685736 1/5
5,571,688 MEMBERS
[TUT] ADB over WiFi

1st June 2012, 04:06 PM
(Last edited by JeepFreak; 1st June 2012 at 04:09 PM.)
#1
+
POST REPLY
> AT&T, Rogers HTC One X, Telstra One XL > One X General > [TUT] ADB over WiFi
Tip us?
JeepFreak
Senior Member - OP
Thanks Meter 189
Posts: 681
Join Date: May 2008
[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 Xto 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
User Name
Remember Me? Forgot your password?
NEWS FORUM WIKI XDA TV

Type To Find Your Device... Search All Forums
Like Tweet +1
Search this thread
MOST THANKED IN THIS THREAD
ALL-TIME
2
Many custom ROMs and even some
stock
paxy97
1
(quote) So tell yourself to smile
glossywhite
1
Pressing the button is thanks enough,

timmaaa
XDA PORTAL POSTS
XDA Xposed Tuesday: Cool Tools
Dude! XDA Developer TV
XDA members are definitely
Gadget Geeks. Some of us have
such a heavy obsession
Introducing XDA:BOOT
Every year at around this time, we
here at XDA-Developers like to
take a step back and figure out
what we can do to make
Get a Taste of Many Different
Devices with the Definitive Ported
Apps Directory
Ported apps are inherently fun.
While shoehorning the Galaxy
more
F2FS Put to the Test Against
EXT4
You may recall that earlier this
month, we talked about speeding
up the original Nexus 7s internal
more
1/4/2014 [TUT] ADB over WiFi - xda-developers
http://forum.xda-developers.com/showthread.php?t=1685736 2/5

REPLY
Ads by Google

1st June 2012, 04:22 PM
#2
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 48 Users Say Thank You to JeepFreak For This Useful Post: [ Click to Expand ]
advertisement
xda-developers How to Extend USB
Free Guide and Cheat Sheet For PC Based Automation www.dajac.com/USB-Extension-Guide
rpomponio
>
Senior Member
Thanks Meter 486
Posts: 1,321
Join Date: Jan 2012
Location: SO. Cali.
MORE INFO
Quote:
Originally Posted by JeepFreak
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!
1/4/2014 [TUT] ADB over WiFi - xda-developers
http://forum.xda-developers.com/showthread.php?t=1685736 3/5

REPLY
20th September 2012, 02:13 PM #3

REPLY
22nd December 2013, 10:57 AM #4

REPLY
22nd December 2013, 11:54 AM #5


REPLY
24th December 2013, 12:36 AM #6
I bet our usb plugs last longer doing things over WiFi. Thanks man
Sent from my HTC One Xusing XDA
***HTC ONE M7 S-OFF***
paxy97
>
Senior Member
Thanks Meter 297
Posts: 615
Join Date: Apr 2012
Location: Belgrade
MORE INFO
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
>
Senior Member
Thanks Meter 1026
Posts: 2,553
Join Date: Aug 2011
Location: New York, NY
MORE INFO
Thanks for the tut, this helps out a lot ^_^
Current device: LG Optimus L9 (P769)
ROM: PenberRom5
My work:
CLICK TO SHOW CONTENT
timmaaa
>
Recognized Contributor
Thanks Meter 4472
Posts: 9,627
Join Date: Jun 2011
Location: Melbourne
MORE INFO
DONATE TO ME
Quote:
Originally Posted by leolawliet
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
Beanstalk 4.4.249 | S-off
2.14 | Modified TWRP 2.6.3
CLICK TO SHOW CONTENT
leolawliet
Quote:
Originally Posted by timmaaa
1/4/2014 [TUT] ADB over WiFi - xda-developers
http://forum.xda-developers.com/showthread.php?t=1685736 4/5

REPLY
24th December 2013, 01:02 AM #7


REPLY
26th February 2014, 04:52 PM #8

REPLY
6th March 2014, 08:37 AM #9

REPLY
6th March 2014, 10:18 PM #10
>
Senior Member
Thanks Meter 1026
Posts: 2,553
Join Date: Aug 2011
Location: New York, NY
MORE INFO
Originally Posted by timmaaa
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:
CLICK TO SHOW CONTENT
timmaaa
>
Recognized Contributor
Thanks Meter 4472
Posts: 9,627
Join Date: Jun 2011
Location: Melbourne
MORE INFO
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
Beanstalk 4.4.249 | S-off
2.14 | Modified TWRP 2.6.3
CLICK TO SHOW CONTENT
The Following User Says Thank You to timmaaa For This Useful Post: [ Click to Expand ]
glossywhite
Member
Thanks Meter 11
Posts: 33
Join Date: Dec 2009
Quote:
Originally Posted by timmaaa
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
Junior Member
Thanks Meter 0
Posts: 2
Join Date: Feb 2014
i've now seen it all...
Quote:
Originally Posted by glossywhite
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
Member
Quote:
1/4/2014 [TUT] ADB over WiFi - xda-developers
http://forum.xda-developers.com/showthread.php?t=1685736 5/5

REPLY
Ads by Google
Search this thread
Previous Thread | Next Thread
More Info: Contact | Rules | Change Log | Suggest Content | Privacy Policy | XDA App
Copyright xda-developers. Powered by Searchlight 2014 Axivo Inc. Hosted by Leaseweb.
Thanks Meter 11
Posts: 33
Join Date: Dec 2009
Originally Posted by droidparanoid
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
advertisement
xda-developers WLAN-Antennen-Pigtails
U.fl, mmcx, rp-sma, rp-tnc, N Fr ein Netz nach Ihren Wnschen www.adaptare-shop.de
TAGS
adb wif i
> AT&T, Rogers HTC One X, Telstra One XL > One X General > [TUT] ADB over WiFi
XDA Developers was founded by developers, for developers. It is
now a valuable resource for people who want to make the most of
their mobile devices, from customizing the look and feel to adding
new functionality. Are you a developer?
-- XDA 2013 Beta
+
POST REPLY SUBSCRIBE

Você também pode gostar