Problem to connect my device to Android Studio via Wi-Fi

Asked

Viewed 781 times

1

I’m developing an application that needs the USB port of the device is not connected, so not to disturb the tests, I need to connect the phone in Android Studio through Wi-Fi, in the past had already managed to make this connection, but now that I need to find the following problem inserir a descrição da imagem aqui.

That is when I try to connect with the ip from my device it returns that cannot connect.

I updated Android Studio, Wi-Fi settings on mobile are already with developer permissions and even so does not work.

1 answer

2


You, without realizing it made a mistake when you used the door 555 when it would actually be 5555.

To perform the procedure correctly, follow the steps below:

Step 1: To connect the device via wifi, at first it is necessary that it is connected to the USB cable. Then connect the device and make sure the debugging is working.

Step 2: On the command line, insert the port correctly using adb:

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

Step 3: Connect to device after checking the ip:

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

Step 4: Disconnect the USB and "tacale dick in that cart".

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

For more details and discussions about debugging via USB, see this Post #9 from a gringo forum of developers.

  • Thank you very much! It all worked out!

  • Cool guy, then if you want to validate the answer, be my guest. Abs

Browser other questions tagged

You are not signed in. Login or sign up in order to post.