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

近端连接报Can't resolve udp address错误 #64

Closed
fcying opened this issue Oct 16, 2016 · 2 comments
Closed

近端连接报Can't resolve udp address错误 #64

fcying opened this issue Oct 16, 2016 · 2 comments

Comments

@fcying
Copy link

fcying commented Oct 16, 2016

前几天用的还好好的, 今天出这个错误了

服务器:45.1.1.1, 远端:27.1.1.1, 近端:114.1.1.1
看起来都连上服务器了, 然后打洞没成功?

服务器log

# ./dtunnel_s -addr=0.0.0.0:20730
2016/10/16 09:51:02 listenAdd:  0.0.0.0:8018
2016/10/16 09:51:02 master start success
2016/10/16 09:51:04 client linked success 27.1.1.1:50046
2016/10/16 09:51:04 client reg service success 27.1.1.1:50046  x220
2016/10/16 09:51:40 client linked success 114.1.1.1:50551
2016/10/16 09:51:40 client link service success 114.1.1.1:50551 x220
2016/10/16 09:51:40 start session 1 0 x220 1
2016/10/16 09:51:40 ===>>tell a to report addrlist 114.1.1.1:50551 x220 1
2016/10/16 09:51:51 remove client session 1
2016/10/16 09:51:51 send quit
2016/10/16 09:51:51 client disconnected 114.1.1.1:50551
2016/10/16 09:51:51 session loop quit 1
2016/10/16 09:53:50 timeout,remove udpsession 1

远端log:

./dtunnel -reg=x220 -remote=45.1.1.1:20730 -local=:20731 -ssl=false
connect to server succeed
2016-10-16 09:51:04 register service ok, user:

近端log:

dtunnel.exe -link=x220 -remote=45.1.1.1:20730 -local=:20731 -ssl=false
connect to server succeed
Can't resolve udp address:  lookup dog-tunnel.tk: getaddrinfow: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server.
init error lookup dog-tunnel.tk: getaddrinfow: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server.
read tcp 192.168.1.3:50551->45.1.1.1:20730: use of closed network connection
@vzex
Copy link
Owner

vzex commented Oct 17, 2016

这个看起来是你的狗洞访问了dog-tunnel.tk的端口,但是由于dns问题,dog-tunnel.tk域名的ip没有被解析出来报的错。
解决方法:
新版狗洞,会默认连接dog-tunnel.tk的两个端口,一个8000,一个8018,具体看参数说明,只要把对应端口指向你自己的8000和8018就可以了,如果不是8000和8018,请自行对应修改

@fcying
Copy link
Author

fcying commented Oct 17, 2016

按这样改就能连上了

@fcying fcying closed this as completed Oct 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants