11 |
12 |
13 |
14 | ## NFO:
15 | The standard ADB Configuration involves a USB Connection to a physical Device.
16 | If you prefer, you can switch over to TCP/IP Mode and connect ADB via WiFi instead.
17 |
18 | # Requirements:
19 | * USB Driver for your Device or Universal ADB Driver
20 | * [Platform-Tools](https://developer.android.com/studio/releases/platform-tools) or [ADB & Fastboot++](https://github.com/K3V1991/ADB-and-FastbootPlusPlus)
21 | * [Termux](https://play.google.com/store/apps/details?id=com.termux) or [Terminal Emulator for Android](https://play.google.com/store/apps/details?id=jackpal.androidterm)
22 |
23 | ## If you don't know your Device's IP you can:
24 |
25 | Click to expand
26 | * Check the IP in the WiFi Settings of your Device
27 | * Use ADB to discover IP (via USB):
28 | 1. Connect the device to the computer via USB
29 | 2. In a Command Line, type:
30 | ```adb shell ifconfig```
31 | and copy your Device's IP Address
32 |
33 |
34 | ## Non-rooted Device:
35 | **Note: Make sure your Device and your Computer are on the same Network**
36 |
37 | 1. Connect the Device to the Host Computer with a USB Cable
38 | 2. Type the following Command to listen for a TCP/IP Connection on a Port (default 5555):
39 | ```
40 | adb tcpip
41 | ```
42 | Switches to TCP/IP Mode
43 |
44 | 3. Disconnect the USB Cable from the Device
45 | 4. Type: adb connect ```:```
46 |
47 | ## Example:
48 | ```
49 | adb tcpip 5555
50 | ```
51 | ```
52 | adb connect 192.168.0.101:5555
53 | ```
54 |
55 | ## Revert back to USB Debugging use the following Command:
56 | ```
57 | adb usb
58 | ```
59 |
60 |
61 | ## Rooted Device:
62 | **Note: When you have a rooted Device but don't have Access to a USB Cable**
63 |
64 | Open a Terminal App on the Device and type:
65 | ```
66 | su
67 | ```
68 | ```
69 | setprop service.adb.tcp.port
70 | ```
71 | ```
72 | start adbd
73 | ```
74 |
75 | ## Example:
76 | ```
77 | setprop service.adb.tcp.port 5555
78 | ```
79 | In a Command Line on the Computer, type:
80 | ```
81 | adb connect 192.168.1.2:5555
82 | ```
83 |
84 | ## Turn it off:
85 | ```
86 | setprop service.adb.tcp.port -1
87 | ```
88 | ```
89 | stop adbd
90 | ```
91 |
--------------------------------------------------------------------------------
/Wireless.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/K3V1991/How-to-set-up-and-use-ADB-Wirelessly/f8e16404a28055bdd63fbec9a48a57e5c9c59a8a/Wireless.png
--------------------------------------------------------------------------------