最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

android - adb command with remote ipv6 address - Stack Overflow

programmeradmin1浏览0评论

how can I use adb command with ipv6 address? I am using bash or zsh shell, and I am sure that remote adb server is up

cmd:

adb -H ffff:1111:1111:1:1:111:111:111 -P 27231 devices

result:

* cannot start server on remote host
adb: failed to check server version: cannot connect to daemon at tcp:xxxxxxxxx

how can I use adb command with ipv6 address? I am using bash or zsh shell, and I am sure that remote adb server is up

cmd:

adb -H ffff:1111:1111:1:1:111:111:111 -P 27231 devices

result:

* cannot start server on remote host
adb: failed to check server version: cannot connect to daemon at tcp:xxxxxxxxx
Share Improve this question edited 19 mins ago Robert 42.6k18 gold badges109 silver badges170 bronze badges Recognized by Mobile Development Collective asked yesterday Lu LeLu Le 11
Add a comment  | 

1 Answer 1

Reset to default 1

To use adb with an IPv6 address, you need to properly format the address. Since expects an IPv6 address to be enclosed in square brackets ([]):

adb -H [ffff:1111:1111:1:1:111:111:111] -P 27231 devices
  • IPv6 address text notation with prefix: inside or outside square brackets?
发布评论

评论列表(0)

  1. 暂无评论