shadowsocks / shadowsocks-windows

A C# port of shadowsocks
Other
58.09k stars 16.4k forks source link

由于目标计算机积极拒绝,无法连接 #3431

Open YedLeo1 opened 10 months ago

YedLeo1 commented 10 months ago

简要描述问题

环境

Shadowsocks客户端版本:4.4.1.0 操作系统版本:Windows 10 64位 .NET版本:未知

操作步骤

连接服务端并开启全局代理

期望的结果

开启全局代理

实际结果

由于目标计算机积极拒绝,无法连接

配置文件和日志文件(请隐去敏感信息)

2023-08-23 19:48:30.0422|WARN|Shadowsocks.Controller.TCPHandler|System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接。
   在 Shadowsocks.Util.Sockets.WrappedSocket.EndConnect(IAsyncResult asyncResult)
   在 Shadowsocks.Proxy.DirectConnect.EndConnectDest(IAsyncResult asyncResult)
   在 Shadowsocks.Controller.TCPHandler.ConnectCallback(IAsyncResult ar)

服务端设置

{     
"server":"0.0.0.0",    
"server_port":7890,       
"local_address": "127.0.0.1",     
"local_port":1080,     
"password":"114514",     
"timeout":300,     
"method":"aes-256-cfb" 
}

并使用内网穿透

[common]
server_addr = 
server_port = 49997
protocol = tcp
user = 
token =

[1212]
type = udp
local_ip = 127.0.0.1
local_port = 7890
remote_port = 40183

服务端能正常pac同步,但是没有任何输出

chenshaoju commented 10 months ago

一般来说这个错误意味着你的服务端不正常,可能的原因包括但不限于客户端配置了错误的服务器IP和端口、服务端的Shadowsocks服务未启动,端口错误,或者运行的是非Shadowsocks协议的服务端等。

laviol commented 9 months ago

Just spent about 12 hours to find out that my configuration was invalid (one damn digit in the IP address), error log was exactly the same. You should probably check the configuration more precisely and the connection to your remote host too.