How to connect an Android device via WiFi

Testing without cables
In this article, you will learn how to connect the Android device to your TestProject account and run test recording and execution via WiFi.

Requirements for connection

One-time device connection via USB. Android ADB (platform-tools) [Official link to get the platform-tools HERE] Installed and running TestProject agent [Agent download page link HERE]

Connection Guide

  1. 1.
    Connect your device to the computer
  2. 2.
    Open a platform-tools folder and copy its path
2. Open a command prompt and navigate the platform-tools folder cd C:\Program Files\TestProject Agent\android-sdk\platform-tools
3. Run the next commands in the command prompt (one after another, not all at once) adb tcpip 5555 adb shell "ip addr show wlan0 | grep -e wlan0$ | cut -d\" \" -f 6 | cut -d/ -f 1" After the second command, you will have the IP address of your Android device
Type the next command in the command prompt adb connect ip_address:5555 Where ip_address is the IP of your mobile phone.
Now you can disconnect your device from the cable, and the device is connected via WiFi :)