Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

最新版本里的常用接口都不能使用了,访问会提示Failed to connect to 172.17.32.160 port 7912: Connection refused #83

Open
wakelay opened this issue Mar 30, 2021 · 3 comments

Comments

@wakelay
Copy link

wakelay commented Mar 30, 2021

curl $DEVICE_URL/info
curl: (7) Failed to connect to 172.17.32.160 port 7912: Connection refused

@codeskyblue
Copy link
Member

这个是因为安全问题,暂时改成了只监听 localhost,如果你命令行直接启动的话,就很支持局域网访问。
问一下你的这个atx-agent是怎么启动的?

adb shell /data/local/tmp/atx-agent server --nouia --addr :7912

@wakelay
Copy link
Author

wakelay commented Apr 6, 2021

这个是因为安全问题,暂时改成了只监听 localhost,如果你命令行直接启动的话,就很支持局域网访问。
问一下你的这个atx-agent是怎么启动的?

adb shell /data/local/tmp/atx-agent server --nouia --addr :7912

我是初始化u2的时候python -m uiautomator2 init启动的

@codeskyblue
Copy link
Member

2.15.0 我给init增加了一个 --addr 选项

uiautomator2 init --addr :7912

你试试这种写法

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants