# **How to connect your phone Wireless to your laptob for debugging:**
#### Prerequisite: Ensure you have Android Studio installed.
## 1. Add Platform-Tools to System Variables:
* Navigate to 'AppData' (note: this folder may be hidden) > 'Local' > 'Android' > 'Sdk' > 'platform-tools'.
* Copy the path and add it as a new entry in your system environment variables.
> For example, in my case: 'C:\Users\hp\AppData\Local\Android\Sdk\platform-tools'

## 2. Initial Wired Connection:
* Connect your phone to your laptop using a cable
* Ensure Developer Options and USB Debugging are enabled on your phone.
* Go to your WiFi network details on your phone and note the IP address.
> For example, in my case: '192.168.100.60'
## 3. Configure ADB for Wireless Debugging:
* Open cmd and type the following command to list attached devices:
<code>adb devices</code>
* Your device should be listed. Then, type:
<code>adb tcpip 5555</code>
* Next, type the following command, **replacing my IP with yours**:
<code>adb connect <Your IP></code>
>For example, in my case:
<code>adb connect 192.168.100.60</code>

## **if you see this message:**
<code>connected to **<Your IP>**:5555 </code>
## **Congratulations! You can now disconnect the cable from your phone. Reload the devices in your editor (Android Studio or VS Code), and your device should appear.**