Running adb on port other than 5037 for stf
Hi, is it possible to run adb on two different ports ex port 5037 and 5038 If yes, how do I configure stf to listen on port 5038. I require this because I have another console based application that uses minicap and runs on port 5037
It won't work. If you run two instances of ADB, one of them will take ownership of all devices, leaving the other one empty.
I'm not convinced you actually need two separate ports, though. I don't see why you couldn't use 5037 for both.
Thank for your response, the reason I want to run two instances on separate ports is because the other application also use minicap and this is causing the device to hang some time
Regardless of whether you want to do that, it just won't work - only one of the instances will get access to the USB device. So if you launch two processes, it'll only be visible in one.
If you still want to try you can try having these open at the same time:
adb server nodaemon -P 5037
adb server nodaemon -P 5038
Then e.g. adb -P 5038 shell echo 1.