http://stackoverflow.com/questions/3836571/changing-default-port-i-e-5037-on-which-adb-server-runs
Use the environment variable ANDROID_ADB_SERVER_PORT to select the port.
The following works under bash:
In another terminal I ran:
Back to original terminal:
I found this via the Jenkins Android Emulator Plugin as I noticed it was running adb on a different port.
| |||||
|
8
|
With the latest adb version,
Use option -P (Note: Caps P)to start adb server in a specific port.
For Example, Try
It will list the devices attached to this specific adb server. If the adb server is not running then it will start a new adb server with the given port number.
Hope it helps someone reading this post.
Thanks.
|