# ADB over wifi

First connect your device and PC on the same network this is a must have.&#x20;

1. Connect your device using a USB cable make sure USB debugging is turned on. I have shown you how to enable usb debugging in the previous email.
2. navigate to your sdk path => platform tools. To run adb commands, we need to open command prompt in this path. For this, click the address bar and type cmd and enter.
3. Type "adb" to test if adb commands are working. If not you will get a adb not recognized error.
4. We need your phones ip address to connect it to pc over wifi. So In phone navigate to settings=>System=>About phone=>status and you can see the ip address.
5. In the command prompt type following commands

adb tcpip 5555

adb connect \[your ip address]:5555

Now you can disconnect your cable and run your apps over the wifi. Enjoy :).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jobinjj.gitbook.io/tutorials/adb-over-wifi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
