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

国内机无法检测IPV4 #124

Closed
zxczaq001 opened this issue Dec 16, 2022 · 7 comments
Closed

国内机无法检测IPV4 #124

zxczaq001 opened this issue Dec 16, 2022 · 7 comments

Comments

@zxczaq001
Copy link

服务端只显示IPV6 机器是双栈的 IPV4正常可用
Dec 16 15:38:53 coal-w768p1ep stat_client[2568814]: enable feature native
Dec 16 15:38:56 coal-w768p1ep stat_client[2568814]: get_network (ipv4, ipv6) => (false, false)
Dec 16 15:38:56 coal-w768p1ep stat_client[2568814]: ERROR stat_client > refresh_ip_info error => error sending request for url (http://ip-api.com/json?fields=status,message,continent,continentCode,country,countryCode,region,regionName,city,district,zip,lat,lon,t>
Dec 16 15:38:56 coal-w768p1ep stat_client[2568814]: Caused by:
Dec 16 15:38:56 coal-w768p1ep stat_client[2568814]: 0: connection error: Connection reset by peer (os error 104)
Dec 16 15:38:56 coal-w768p1ep stat_client[2568814]: 1: Connection reset by peer (os error 104)
Dec 16 15:38:59 coal-w768p1ep stat_client[2568814]: ERROR stat_client > refresh_ip_info error => error sending request for url (http://ip-api.com/json?fields=status,message,continent,continentCode,country,countryCode,region,regionName,city,district,zip,lat,lon,t>
Dec 16 15:38:59 coal-w768p1ep stat_client[2568814]: Caused by:
Dec 16 15:38:59 coal-w768p1ep stat_client[2568814]: 0: connection error: Connection reset by peer (os error 104)
Dec 16 15:38:59 coal-w768p1ep stat_client[2568814]: 1: Connection reset by peer (os error 104)

@zdz
Copy link
Owner

zdz commented Dec 16, 2022

你的 server 是只有 ipv6 的 ip ?
你这主机内置的检查 url 都连不上。。
测试一下网络,dns 啥的,完了试试重启一下进程 systemctl restart stat_client

ipv4.google.com
ipv6.google.com
ip-api.com

@zxczaq001
Copy link
Author

你的 server 是只有 ipv6 的 ip ? 你这主机内置的检查 url 都连不上。。 测试一下网络,dns 啥的,完了试试重启一下进程 systemctl restart stat_client

ipv4.google.com
ipv6.google.com
ip-api.com

image
网络是正常的 就ip-api.com不行 我其它机器都正常就一台有问题 也不知道为啥 server端的机器也是双栈的

@zdz
Copy link
Owner

zdz commented Dec 16, 2022

日志已经写了,Connection reset by peer 应该是主机网络环境问题,自己检查一下吧

@zxczaq001
Copy link
Author

日志已经写了,Connection reset by peer 应该是主机网络环境问题,自己检查一下吧

搞不明白 这个不会要指定端口的吧 比如80 443什么的 这机器除了不备案没有80和443之类的端口和其它机器没区别

@zxczaq001
Copy link
Author

好像因为这个也无法看实时流量了 之前用的ServerStatus-Hotaru 实时流量是可以检测到的

@zdz
Copy link
Owner

zdz commented Dec 16, 2022

这个是用http 协议上报的,他们用的是 tcp 协议,可以查查你的环境有没开http代理,检测一下http 相关

@zxczaq001
Copy link
Author

用grpc上报也不行? 没用代理 不懂怎么检测 不折腾了

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

No branches or pull requests

2 participants