Android adb plug in blank hostname

I use ADB via WiFi to connect to an Android device. When i type

adb connect <device ip> 

I get an error

 empty hostname 
+6
source share
2 answers

For me, just restarting adb solved the problem

 adb kill-server adb start-server 
+13
source

You need to change the net.hostname property on your device. The easiest way is to use the setprop command through the root shell on the device.

 setprop net.hostname TypeAnyHostName 

If this does not work for you, see other solutions here . This is a temporary solution, the problem recurs after a while.

+3
source

Source: https://habr.com/ru/post/989712/


All Articles