BaiduPCS-Go icon indicating copy to clipboard operation
BaiduPCS-Go copied to clipboard

android上开启热点才能连接上

Open GeorgeJoestar opened this issue 4 years ago • 5 comments

有点奇怪的情况。。

获取目录下的文件列表: 网络错误, Get https://pcs.baidu.com/rest/2.0/pcs/file?app_id=266719&by=name&limit=0-2147483647&method=list&order=asc&path=%2F: lookup pcs.baidu.com on [::1]:53: read udp [::1]:51580->[::1]:53: read: connection refused 错误代码: -1, 消息: 网络请求失败, Post https://wappass.baidu.com/wp/api/login: lookup wappass.baidu.com on [::1]:53: read udp [::1]:41372->[::1]:53: read: connection refused

两台手机分别是华为荣耀V8(android版本7.0,已root)、华为荣耀20(android版本9.0,未root)

用termux来模拟终端,确认termux里能联网,在使用移动数据/连上wlan时BaiduPCS-Go里不管什么操作都显示网络错误

然后发现开启热点共享(USB共享也可)后就行了…… 最后是在本机上用every proxy开启代理用proxy参数进行转发解决了

GeorgeJoestar avatar Jun 24 '21 11:06 GeorgeJoestar

在安卓上是重新编译的安卓版本还是直接用arm架构的程序了?如果是后者网络确实会出问题,需要手动编译安卓平台。

发自我的iPhone

在 2021年6月24日,下午7:59,Ticorwk @.***> 写道:

 有点奇怪的情况。。

获取目录下的文件列表: 网络错误, Get https://pcs.baidu.com/rest/2.0/pcs/file?app_id=266719&by=name&limit=0-2147483647&method=list&order=asc&path=%2F: lookup pcs.baidu.com on [::1]:53: read udp [::1]:51580->[::1]:53: read: connection refused 错误代码: -1, 消息: 网络请求失败, Post https://wappass.baidu.com/wp/api/login: lookup wappass.baidu.com on [::1]:53: read udp [::1]:41372->[::1]:53: read: connection refused

两台手机分别是华为荣耀V8(android版本7.0,已root)、华为荣耀20(android版本9.0,未root)

用termux来模拟终端,确认termux里能联网,在使用移动数据跟wlan时BaiduPCS-Go里不管什么操作都显示网络错误

然后发现开启热点共享(USB共享也可)后就行了…… 最后是在本机上用every proxy开启代理用proxy参数进行转发解决了

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

qjfoidnh avatar Jun 24 '21 13:06 qjfoidnh

安卓需要重新编译,不能用linux的arm64版 用git把源码下载下来 安装golang cd到源码目录 编译 go build

pongfcnkl avatar Jun 25 '21 07:06 pongfcnkl

这一套也是在安卓机上进行的?

发自我的iPhone

在 2021年6月25日,下午3:15,github.com @.***> 写道:

 安卓需要重新编译,不能用linux的arm64版 用git把源码下载下来 安装golang cd到源码目录 编译 go build

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

qjfoidnh avatar Jun 25 '21 08:06 qjfoidnh

因为我也没在安卓上跑过,这个问题确实不太清楚。不过根据查到的一些资料,其他人也Android运行go程序时也遇见过DNS解析问题,这篇帖子提到了改resolv.conf的方法,也许有用

qjfoidnh avatar Jun 28 '21 13:06 qjfoidnh

使用termux下的golang本地编译,使用未发现问题

123485k avatar Jan 12 '22 18:01 123485k