Changing default port (i.e. 5037) on which adb server runs

后端 未结 4 1279
借酒劲吻你
借酒劲吻你 2020-11-28 11:54

I am a budding android developer and if there is no easy way of configuring the adb server to run on another port then the inflexibility of the tools will force me

4条回答
  •  隐瞒了意图╮
    2020-11-28 12:05

    There is another variable that supports this for connecting to a different machine's adb:

    ADB_SERVER_SOCKET=tcp:some.other.host:1234 adb devices
    

    To use it, you need to start adb on the other host with -a and probably background it too:

    ( adb -a -P 1234 nodaemon server & ) &
    

提交回复
热议问题