Problem connecting my device to Android Studio over Wi-Fi

1

I'm developing an application that requires that the USB port of the device is not connected, so as not to disturb the tests, I need to connect the phone in Android Studio through Wi-Fi, in the past I had already managed to make that connection, but now I need to find the following problem .

In other words, when I try to connect with the ip of my device it returns that it can not connect.

I upgraded Android Studio, Wi-Fi settings on my phone are already developer-enabled, and it still does not work.

    
asked by anonymous 06.01.2017 / 01:22

1 answer

2

You unknowingly made a mistake when you used the 555 port when in fact it would be 5555 .

To perform the procedure correctly, follow the steps below:

Step 1: To connect the device via wifi, the first time it needs to be connected to the USB cable. Then plug in the device and make sure debugging is working.

Step 2: At the command line, enter the port correctly using adb:

c:\Users\...># adb tcpip 5555

Step 3: Connect to device after checking ip :

c:\Users\...># adb connect 192.168.15.14:5555

Step 4: Disconnect USB and " tacale stick in this cart ".

  

IMPORTANT : leaving the option enabled is somewhat dangerous. Anyone on your network can connect to your device on   even if you are in the data network. Do this only   when connected to a trusted Wi-Fi and remember to disconnect it   when you're done!

For more details and discussions about USB debugging, check out this Post # 9 (en) of a gringo forum of developers.

    
06.01.2017 / 03:14