scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

No route to host while connecting with adb connect

Open adarshbalu opened this issue 4 years ago • 18 comments

I checked a lot on stack overflow but still, I can't get this working. This shows every time I use adb connect unable to connect to 192.168.1.100:5555: No route to host

adarshbalu avatar May 01 '20 14:05 adarshbalu

Are your device and your computer on the same network?

rom1v avatar May 01 '20 17:05 rom1v

Are your device and your computer on the same network?

Yes . Connected in the same wifi network. I tried restarting both my phone and my pc. I also tried adb kill-server. I looked into a lot of answers on the Internet still no solution.

adarshbalu avatar May 01 '20 19:05 adarshbalu

Did you adb tcpip 5555?

rom1v avatar May 01 '20 19:05 rom1v

Did you adb tcpip 5555?

Yes i did. I'll show you the complete screenshot.

adarshbalu avatar May 01 '20 20:05 adarshbalu

I'll show you the complete screenshot.

(or better, copy-paste the text from your terminal :wink:)

rom1v avatar May 01 '20 21:05 rom1v

I'll show you the complete screenshot.

(or better, copy-paste the text from your terminal )

adb tcpip 5555

  • daemon not running; starting now at tcp:5037
  • daemon started successfully

adb connect 192.168.1.200 unable to connect to 192.168.1.200:5555: No route to host

adarshbalu avatar May 02 '20 05:05 adarshbalu

I'll show you the complete screenshot.

(or better, copy-paste the text from your terminal )

Hey

adarshbalu avatar May 11 '20 17:05 adarshbalu

I don't know. If your device is connected over wifi, if you use its IP address and if your computer is on the same network, it should work.

https://stackoverflow.com/questions/33462720/adb-unable-to-connect-to-192-168-1-105555

rom1v avatar May 11 '20 18:05 rom1v

I don't know. If your device is connected over wifi, if you use its IP address and if your computer is on the same network, it should work.

https://stackoverflow.com/questions/33462720/adb-unable-to-connect-to-192-168-1-105555

I tried the same post and still does not work. Even kde connect is not working. The device is not showing.

adarshbalu avatar May 12 '20 04:05 adarshbalu

i have same problem

dimashn21 avatar May 19 '20 13:05 dimashn21

i know,, you must check ip address your phone again..

dimashn21 avatar May 19 '20 13:05 dimashn21

So my situation was that i restarted it in tcp mode but still couldn't connect, i had the same error ie no route to host, so i tried pinging it but i couldn't find it either even though it was on the arp table. so what i noticed was that when i connect it by usb, it pings successfully. so i had to do the adb connect ip before i could unplug the usb.

williamjnrkdd avatar Aug 18 '20 16:08 williamjnrkdd

I created this tool to ease wireless connectivity. Check it out and let me know of your experience.

https://github.com/fusionneur/ethernally

i'm also facing the same problem.!!

codrikaz avatar Aug 09 '22 09:08 codrikaz

I was having the same issue but after looking at @williamjnrkdd I decided to look at arp table and the HWaddress was incomplete. After digging in a bit it turns out the MAC address on my android was randomized which made it impossible to establish connection with even when I was using ping. Ideally go to settings search for Wifi Mac Address and disable the random mac address and use the phone address instead. Then you also need to go to developer option and follow this post https://developer.android.com/studio/run/device for adding your linux system to your android debugging tools. and then try pinging the ip of your phone from your machine and it should work. @coddrikaz hope this helps

Abhishek-EE avatar Jul 30 '23 04:07 Abhishek-EE

how about with usb

richardwojc avatar Aug 18 '23 23:08 richardwojc

@richardwojc we're talking about WIRELESS adb here, know what that means jerry?.

Anyway after getting the same problem i was able to solve it by restart the wifi router -> after connecting get my phones ip address from the routers app -> did "adb connect ip:5555" -> voila "adb devices". No Usb needed

Mohsin81 avatar Dec 24 '23 06:12 Mohsin81