I usually debug with Wifi adb. Everything work fine. But the length of devices name are big!.
It's usually are wifi IP + 5555.
I've tried this solution but devices name not change.
How to shorten that name?
You can't do that, really. However, to simplify your debugging, you can define environment variable ANDROID_SERIAL
with your target device name, something like:
export ANDROID_SERIAL=192.168.123.123:5555
After that, adb
will connect with this device by default.