Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

代理访问出现错误,无法正确的结果 #381

Closed
mesoar opened this issue Jan 25, 2020 · 6 comments
Closed

代理访问出现错误,无法正确的结果 #381

mesoar opened this issue Jan 25, 2020 · 6 comments
Labels
bug Something isn't working

Comments

@mesoar
Copy link

mesoar commented Jan 25, 2020

2020/01/25 18:58:39.331 [I] [npc.go:197] the version of client is 0.26.0, the core version of client is 0.26.0
2020/01/25 18:58:39.407 [I] [client.go:67] Successful connection with server 服务器IP:端口
2020/01/25 18:58:43.723 [W] [client.go:208] connect to ip138.com:80 error dial tcp: lookup ip138.com on [::1]:53: read udp [::1]:35083->[::1]:53: read: connection refused
2020/01/25 18:58:44.442 [W] [client.go:208] connect to ip138.com:80 error dial tcp: lookup ip138.com on [::1]:53: read udp [::1]:57574->[::1]:53: read: connection refused
2020/01/25 18:58:44.528 [W] [client.go:208] connect to ip138.com:80 error dial tcp: lookup ip138.com on [::1]:53: read udp [::1]:39036->[::1]:53: read: connection refused
2020/01/25 18:58:44.631 [W] [client.go:208] connect to ip138.com:80 error dial tcp: lookup ip138.com on [::1]:53: read udp [::1]:34233->[::1]:53: read: connection refused
2020/01/25 18:58:44.672 [W] [client.go:208] connect to ip138.com:80 error dial tcp: lookup ip138.com on [::1]:53: read udp [::1]:57368->[::1]:53: read: connection refused
2020/01/25 18:58:44.821 [W] [client.go:208] connect to ip138.com:80 error dial tcp: lookup ip138.com on [::1]:53: read udp [::1]:41854->[::1]:53: read: connection refused
2020/01/25 18:58:44.902 [W] [client.go:208] connect to ip138.com:80 error dial tcp: lookup ip138.com on [::1]:53: read udp [::1]:38753->[::1]:53: read: connection refused
2020/01/25 18:58:45.006 [W] [client.go:208] connect to ip138.com:80 error dial tcp: lookup ip138.com on [::1]:53: read udp [::1]:59434->[::1]:53: read: connection refused

看起来像是解析域名出现问题,请问我该如何做?使用的是最新版本0.26.0。

@mesoar mesoar added the bug Something isn't working label Jan 25, 2020
@ffdfgdfg
Copy link
Contributor

ffdfgdfg commented Jan 26, 2020

客户端的dns怎么会是v6的localhost。。。
不用v6的话把v6关了吧

@mesoar
Copy link
Author

mesoar commented Jan 27, 2020

客户端的dns怎么会是v6的localhost。。。
不用v6的话把v6关了吧

我是在安卓系统上跑的,请问在配置文件中能不能进行关闭v6解析?

@ffdfgdfg
Copy link
Contributor

配置文件没有的,是你系统设置里面,我也不知道为啥会解析v6了很奇怪

@mesoar
Copy link
Author

mesoar commented Jan 28, 2020

配置文件没有的,是你系统设置里面,我也不知道为啥会解析v6了很奇怪

你好,能帮我看下这个问题吗,
1.我有一个想法,在解析前指定一个 114.114.114.114 指定的DNS进行解析呢?
2.客户端连接成功后在web端添加host?进行配置参数?
自己能力有限研究了一天多还是这个问题,希望帮忙解惑,谢谢。

@mesoar mesoar closed this as completed Jan 28, 2020
@tyanbiao
Copy link

配置文件没有的,是你系统设置里面,我也不知道为啥会解析v6了很奇怪

你好,能帮我看下这个问题吗, 1.我有一个想法,在解析前指定一个 114.114.114.114 指定的DNS进行解析呢? 2.客户端连接成功后在web端添加host?进行配置参数? 自己能力有限研究了一天多还是这个问题,希望帮忙解惑,谢谢。

请问你找到解决方法了吗,我也遇到了同样的问题。

@tyanbiao
Copy link

tyanbiao commented Jan 6, 2022

经过验证,配置服务器时使用域名会出现楼上同样的错误,使用 IP 地址则不会,尝试了 frp 也是有同样的问题,我在 frp 的 issue 中看到同样的问题:安卓 Android 的frpc在配置文件中使用server_addr = 域名,不能工作。望开发者亲测。

解决方法:再次探讨 #633 安卓上运行ARM版本,不能使用域名,只能使用IP的问题

我使用 Android 真机在 Termux 下编译了 npc 二进制文件,可以正常使用,无此问题,如有需要,可直接下载使用。
npc_v0.26.10_linux_android.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants