I use ADB over WiFi to connect to an Android device. When I type
adb connect <device ip>
I get error
empty hostname
For me, simply restarting adb solved the problem
adb kill-server adb start-server