It seems that wireless ADB has more and more issues each time I update Android Studio. Using 2.1.1, I\'m now unable to connect to my tablet using the command:
Go to Android Studio File - Settings Next..
Happy Codding :)
I had a similar problem. I found out the problem was if I had other devices/emulators connected to the adb already, the "adb connect <ip_addr>" command would give me the "No connection could be made because the target machine actively refused it" message.
The solution is to make sure all the other devices/emulators are disconnected (either physically disconnect or quit the emulator application) before running adb connect <ip_addr>. You can then reconnect your other devices (if you need them reconnected). A total pain.
Your mileage to this solution may vary depending on your problem.
After weeks of struggle and trying different approaches while everything was right and on the same network (ping {ip}
was coming back positive) I figured the dumb debug bridge does not look for all network adapters to find the device! The device got connected when I manually disabled all other network adapters except the one (WiFi adapter) which was required to connect.