Search code examples
androidflutteradb

Can we do Flutter App Development Wireless ? Without connecting USB cable from Mobile to laptop?


We have to attach mobile with the laptop through USB cable during development. Because, often usb cable got disconnect and mobile connection got lost and again need to install whole App.

Is there any option do it wireless ?

through wifi or hotspot something ?


Solution

  • Yes, It is possible to wirelessly debug your application through adb over wifi.

    1. Make sure your development machine and your device is on the same wifi network
    2. Connect your device via USB
    3. On console type : adb tcpip 5555
    4. Disconnect USB and find the IP of your testing device (Settings -> About Phone -> IP Address)
    5. On console type : adb connect YOUR_IP_ADDRESS

    For future convenience you may assign a static IP address to your testing device on the router.