I thought there was a way to test your applications in development over Wi-Fi. Is this possible?
I’d love to be able to untether my phone and develop wirelessly.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
See forum post Any way to view Android screen remotely without root? – Post #9.
adb tcpip 5555. This makes the device to start listening for connections on port 5555;adb shell netcfgoradb shell ifconfigwith 6.0 and higher oradb shell ip -f inet addr showwith Android 10 and higher;adb connect <DEVICE_IP_ADDRESS>:5555. This connects to the server we set up on the device on step 2;To switch the server back to the USB mode, run
adb usb, which will put the server on your phone back to the USB mode. If you have more than one device, you can specify the device with the-soption:adb -s <DEVICE_IP_ADDRESS>:5555 usb.No root required!
To find the IP address of the device: run
adb shelland thennetcfg. You’ll see it there.To find the IP address while using OSX run the command
adb shell ip route.WARNING: leaving the option enabled is dangerous, anyone in your network can connect to your device in debug, even if you are in data network. Do it only when connected to a trusted Wi-Fi and remember to disconnect it when done!
@Sergei suggested that line 2 should be modified, commenting: "-d option needed to connect to the USB device when the other connection persists (for example, emulator connected or other Wi-Fi device)".
This information may prove valuable to future readers, but I rolled-back to the original version that had received 178 upvotes.
On some device you can do the same thing even if you do not have an USB cable:
adb connect <DEVICE_IP_ADDRESS>:5555Using Android Studio there is a plugin allowing you to connect USB Debugging without the need of using any ADB command from a terminal.