v2ray-core
v2ray-core copied to clipboard
无法连接到远程服务器
-
你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明) code:v4.28.2,客户端:v2rayN v3.19
-
你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。 使用火狐游览器
-
你看到的不正常的现象是什么?(请描述具体现象,比如访问超时,TLS 证书错误等) PC客户端显示,当前服务的真连接延迟: -1ms,虽然pc端无法连接但是安卓端可以正常的连接。
-
你期待看到的正确表现是怎样的? 延迟显示为正数
-
请附上你的配置(提交 Issue 前请隐藏服务器端IP地址)。
服务器端配置:
{
"log": {
"loglevel": "info",
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log"
},
"inbounds": [{
"port": 17541,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "118.xxx.xxx.xxx",
"level": 1,
"alterId": 0
}
]
},
"streamSettings": {
"network": "ws",
"wsSettings": {
"path": "/user/infor/skuk",
"headers": {
"Host": "server.tk"
}
客户端配置:
// 在这里附上客户端配置
{
"policy": null,
"log": {
"access": "D:\\v2ray\\v2rayN-Core\\Vaccess.log",
"error": "D:\\v2ray\\v2rayN-Core\\Verror.log",
"loglevel": "error"
},
"inbounds": [
{
"tag": "proxy",
"port": 8088,
"listen": "127.0.0.1",
"protocol": "socks",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
},
"settings": {
"auth": "noauth",
"udp": true,
"ip": null,
"address": null,
"clients": null
},
"streamSettings": null
}
],
"outbounds": [
{
"tag": "proxy",
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "118.xxx.xxx.xxx",
"port": 443,
"users": [
{
"id": "id",
"alterId": 0,
"email": "[email protected]",
"security": "auto"
}
]
}
],
"servers": null,
"response": null
},
"streamSettings": {
"network": "ws",
"security": "tls",
"tlsSettings": {
"allowInsecure": true,
"serverName": "server.tk"
},
"tcpSettings": null,
"kcpSettings": null,
"wsSettings": {
"connectionReuse": true,
"path": "/user/infor/skuk",
"headers": {
"Host": "server.tk"
}
},
"httpSettings": null,
"quicSettings": null
},
"mux": {
"enabled": true,
"concurrency": 8
}
},
{
"tag": "direct",
"protocol": "freedom",
"settings": {
"vnext": null,
"servers": null,
"response": null
},
"streamSettings": null,
"mux": null
},
{
"tag": "block",
"protocol": "blackhole",
"settings": {
"vnext": null,
"servers": null,
"response": {
"type": "http"
}
},
"streamSettings": null,
"mux": null
}
],
"stats": null,
"api": null,
"dns": null,
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"port": null,
"inboundTag": [
"api"
],
"outboundTag": "api",
"ip": null,
"domain": null
}
]
}
}
- 请附上出错时软件输出的错误日志。在 Linux 中,日志通常在
/var/log/v2ray/error.log文件中。
服务器端错误日志:
// 在这里附上服务器端日志
2020/09/21 13:45:54 [Info] [2785426049] v2ray.com/core/proxy/vmess/inbound: received request for udp:1.1.1.1:53
2020/09/21 13:45:54 [Info] [2785426049] v2ray.com/core/app/dispatcher: default route for udp:1.1.1.1:53
2020/09/21 13:45:54 [Info] [2785426049] v2ray.com/core/proxy/freedom: opening connection to udp:1.1.1.1:53
2020/09/21 13:45:54 [Info] [2212618537] v2ray.com/core/proxy/vmess/inbound: received request for udp:1.1.1.1:53
2020/09/21 13:45:54 [Info] [2212618537] v2ray.com/core/app/dispatcher: default route for udp:1.1.1.1:53
2020/09/21 13:45:54 [Info] [2212618537] v2ray.com/core/proxy/freedom: opening connection to udp:1.1.1.1:53
2020/09/21 13:45:54 [Info] [591753564] v2ray.com/core/proxy/vmess/inbound: received request for udp:239.255.255.250:1900
2020/09/21 13:45:54 [Info] [591753564] v2ray.com/core/app/dispatcher: taking detour [blocked] for [udp:239.255.255.250:1900]
2020/09/21 13:45:54 [Info] [591753564] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/vmess/inbound: connection ends > io: read/write on closed pipe
2020/09/21 13:45:54 [Info] [2723671215] v2ray.com/core/proxy/vmess/inbound: received request for udp:1.1.1.1:53
2020/09/21 13:45:54 [Info] [2723671215] v2ray.com/core/app/dispatcher: default route for udp:1.1.1.1:53
2020/09/21 13:45:54 [Info] [2723671215] v2ray.com/core/proxy/freedom: opening connection to udp:1.1.1.1:53
2020/09/21 13:45:54 [Info] [1349095058] v2ray.com/core/proxy/vmess/inbound: received request for udp:1.1.1.1:53
2020/09/21 13:45:54 [Info] [1349095058] v2ray.com/core/app/dispatcher: default route for udp:1.1.1.1:53
2020/09/21 13:45:54 [Info] [1349095058] v2ray.com/core/proxy/freedom: opening connection to udp:1.1.1.1:53
2020/09/21 13:45:54 [Info] [3270135845] v2ray.com/core/proxy/vmess/inbound: received request for tcp:app.adjust.com:443
2020/09/21 13:45:54 [Info] [3270135845] v2ray.com/core/app/dispatcher: default route for tcp:app.adjust.com:443
2020/09/21 13:45:54 [Info] [3270135845] v2ray.com/core/proxy/freedom: opening connection to tcp:app.adjust.com:443
2020/09/21 13:45:54 [Info] [3270135845] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:app.adjust.com:443
2020/09/21 13:45:54 [Info] [3454903683] v2ray.com/core/proxy/vmess/inbound: received request for tcp:incoming.telemetry.mozilla.org:443
2020/09/21 13:45:54 [Info] [3454903683] v2ray.com/core/app/dispatcher: default route for tcp:incoming.telemetry.mozilla.org:443
2020/09/21 13:45:54 [Info] [3454903683] v2ray.com/core/proxy/freedom: opening connection to tcp:incoming.telemetry.mozilla.org:443
2020/09/21 13:45:54 [Info] [3454903683] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:incoming.telemetry.mozilla.org:443
2020/09/21 13:45:55 [Info] [2824662738] v2ray.com/core/proxy/vmess/inbound: received request for tcp:api.leanplum.com:443
2020/09/21 13:45:55 [Info] [2824662738] v2ray.com/core/app/dispatcher: default route for tcp:api.leanplum.com:443
2020/09/21 13:45:55 [Info] [2824662738] v2ray.com/core/proxy/freedom: opening connection to tcp:api.leanplum.com:443
客户端错误日志:
--------------------------------无法连接到远程服务器[13:45:44]--------------------------------
System.Net.WebException: 无法连接到远程服务器 ---> System.Net.Sockets.SocketException: 由于目标计算机积极拒绝,无法连接。 127.0.0.1:8089
在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
在 System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
--- 内部异常堆栈跟踪的结尾 ---
在 System.Net.HttpWebRequest.GetResponse()
在 v2rayN.Handler.SpeedtestHandler.GetRealPingTime(String url, WebProxy webProxy, Int32& responseTime)
- 请附上访问日志。在 Linux 中,日志通常在
/var/log/v2ray/access.log文件中。
// 在这里附上服务器端日志
2020/09/21 13:45:54 14.119.187.208:50200 accepted udp:1.1.1.1:53
2020/09/21 13:45:54 14.119.187.208:50202 accepted udp:1.1.1.1:53
2020/09/21 13:45:54 14.119.187.208:50204 accepted udp:239.255.255.250:1900 [blocked]
2020/09/21 13:45:54 14.119.187.208:50206 accepted udp:1.1.1.1:53
2020/09/21 13:45:54 14.119.187.208:50208 accepted udp:1.1.1.1:53
2020/09/21 13:45:54 14.119.187.208:50210 accepted tcp:app.adjust.com:443
2020/09/21 13:45:54 14.119.187.208:50212 accepted tcp:incoming.telemetry.mozilla.org:443
2020/09/21 13:45:55 14.119.187.208:50220 accepted tcp:api.leanplum.com:443
2020/09/21 13:45:55 14.119.187.208:50224 accepted udp:239.255.255.250:1900 [blocked]
2020/09/21 13:45:56 14.119.187.208:50226 accepted udp:239.255.255.250:1900 [blocked]
2020/09/21 13:45:56 14.119.187.208:50228 accepted udp:239.255.255.250:1900 [blocked]
2020/09/21 13:45:57 14.119.187.208:50230 accepted tcp:incoming.telemetry.mozilla.org:443
2020/09/21 13:45:57 14.119.187.208:50236 accepted udp:239.255.255.250:1900 [blocked]
2020/09/21 13:45:58 14.119.187.208:50238 accepted udp:1.1.1.1:53
2020/09/21 13:45:58 14.119.187.208:50240 accepted udp:1.1.1.1:53
2020/09/21 13:45:58 14.119.187.208:50242 accepted udp:1.1.1.1:53
2020/09/21 13:45:58 14.119.187.208:50244 accepted udp:1.1.1.1:53
2020/09/21 13:45:58 14.119.187.208:50246 accepted tcp:www.google.com:443
2020/09/21 13:45:58 14.119.187.208:50250 accepted tcp:encrypted-tbn0.gstatic.com:443
2020/09/21 13:45:58 14.119.187.208:50254 accepted udp:239.255.255.250:1900 [blocked]
2020/09/21 13:45:59 14.119.187.208:50256 accepted udp:239.255.255.250:1900 [blocked]
2020/09/21 13:46:00 14.119.187.208:50258 accepted udp:1.1.1.1:53
2020/09/21 13:46:00 14.119.187.208:50260 accepted tcp:avatars3.githubusercontent.com:443
2020/09/21 13:46:00 14.119.187.208:50264 accepted udp:239.255.255.250:1900 [blocked]
2020/09/21 13:46:00 14.119.187.208:50266 accepted udp:239.255.255.250:1900 [blocked]
2020/09/21 13:46:01 14.119.187.208:50268 accepted udp:1.1.1.1:53
2020/09/21 13:46:01 14.119.187.208:50270 accepted udp:1.1.1.1:53
-
其它相关的配置文件(如 Nginx)和相关日志。
-
如果 V2Ray 无法启动,请附上
--test输出。
通常的命令为 /usr/bin/v2ray/v2ray --test --config /etc/v2ray/config.json。请按实际情况修改。
- 如果 V2Ray 服务运行不正常,请附上 journal 日志。
通常的命令为 journalctl -u v2ray。
请预览一下你填的内容再提交。
比较奇怪的是安卓端可以正常的连接,但是pc端是无法正常连接。
转移到v2rayN