I connected my laptop to my MiBox and enabled adb and opened up port 5555. I was able to connect via IP address with my MiBox on wifi.
I prefer using a wired connection via an ethernet-USB adapter. I plugged that back in and it wouldn't work until I disabled USB debugging mode. So the MiBox is back on my LAN with a wired connection - but I can't make a an adb connection - it now says "the target machine actively refused it".
So do you have to keep USB debugging turned on when using adb, even when you are using it over a wifi or wired network and not using the USB port?
It also appears that opening up port 5555 may not persist a reboot of the device. Can anyone confirm?