Here is what I'm doing:
1.Plugging phone through usb
2.turning on usb debugging (MTP configuration)
3.revoke USB debugging auth
4.adb kill-server
5.adb tcpip 5555
6.unplugging usb cable (or I do this in last step, doesn't matter)
7.adb connect 192.168.1.100
resault:
unable to connect to 192.168.1.100:5555: cannot connect to 192.168.1.100:5555: No connection could be made because the target machine actively refused it. (10061)
Or if I unplug the cable in last step it will connect
connected 192.168.1.100:5555
but after unplugging the cable adb devices
list is empty.
I saw many question regarding this problem but nothing worked for me.
P.S My device is not rooted (Honor 8 lite, API 24)