Appearance
客户端常见报错
一、服务器连接错误
通过观察程序日志信息,可以判断错误类型。大多数的错误都是因为配置信息填写错误。
connect to server error: dial tcp: lookup 127.0.0.1: no such host
配置中服务器的 域名/IP
填写错误。检查字段 serverAddr
。
connect to server error: dial tcp xxx.xxx.xxx.xxx:xxxx: connectex: No connection could be made because the target machine actively refused it.
绑定端口配置错误。检查字段 serverPort
。
connect to server error: token in login doesn't match token from configuration
配置中令牌设置错误。注意前后不要有多余的空格。检查字段 token
。
二、映射配置错误
start error: port not allowed
远程端口填写错误,您需要填写分配给您的范围内的端口。检查字段 remotePort
。
start error: port already used
远程端口不要重复使用。一个远程端口仅可用于一条映射。检查字段 remotePort
。
start error: proxy [xxx] already exists
映射名称设置重复。映射名称需要保持唯一。检查字段 name
。
connect to local service [xxx.xxx.xxx.xxx:xxxx] error: dial tcp xxx.xxx.xxx.xxx:xxxx: connectex: No connection could be made because the target machine actively refused it.
本地端口未监听,请检查本地服务是否运行正常。或者检查 localIP
和 localPort
填写是否正确。请先在内网中调试好服务再进行映射。