from uiautomator import Device
print 'connecting'
d = Device(local_port=5037, adb_server_host='192.168.100.7', adb_server_port=5555)
print 'connected'
d.open.quick_settings()
print 'settings'
from uiautomator import Device
d1 = Device('device-serial1')
d2 = Device('device-serial2')
adb -H localhost -P 5037 devices
localhost
and 5037
with right IP address and port