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

System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it #3467

Open
nikitaabramenko opened this issue Mar 13, 2024 · 2 comments

Comments

@nikitaabramenko
Copy link

nikitaabramenko commented Mar 13, 2024

Describe the bug

As in title. System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it

Environment

  • Shadowsocks client version: 4.4.1.0
  • OS version: Win10 Enterprise 22h2 OS build 19045.4046
  • .NET version: .NET Framework Version: 4.8.1 or later

Steps you have tried

Tried [#2474 ] and [#2449]. Checked firewall settings on the server machine, seems to be ok. Added system proxy on my pc, tried switching off firewall on my pc, didn't work. Tried changing crypto algorithms, didn't work

What did you expect to see?

no errors

What did you see instead?

stated above

Config and error log in detail (with all sensitive info masked)

2024-03-13 18:36:46.9498|DEBUG|Shadowsocks.Controller.TCPHandler|connect to self.events.data.microsoft.com:443
2024-03-13 18:36:47.3420|WARN|Shadowsocks.Controller.TCPHandler|System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it
   at Shadowsocks.Util.Sockets.WrappedSocket.EndConnect(IAsyncResult asyncResult)
   at Shadowsocks.Proxy.DirectConnect.EndConnectDest(IAsyncResult asyncResult)
   at Shadowsocks.Controller.TCPHandler.ConnectCallback(IAsyncResult ar)

Server config (docker-compose.yml file since i am using docker to run the whole thing)

version: '3'
services:
        shadowsocks:
                      image: shadowsocks/shadowsocks-libev:latest
                      environment:
                                        - TZ=Europe/Moscow
                                        - PASSWORD=**********
                                        - METHOD=chacha20-ietf-poly1305
                                        - ARGS=--fast-open
                      ports:
                                        - "8390:8390"
                                        - "8390:8390/udp"
                      restart: unless-stopped
@chenshaoju
Copy link
Collaborator

This problem may be caused by the Shadowsocks port of your server not being configured correctly. Please use this third-party detection service to ensure that the port can be accessed normally: https://www.yougetsignal.com/tools/open-ports/

@nikitaabramenko
Copy link
Author

This problem may be caused by the Shadowsocks port of your server not being configured correctly. Please use this third-party detection service to ensure that the port can be accessed normally: https://www.yougetsignal.com/tools/open-ports/

Strange. This site says the port is closed, checked the netstat -l | grep 8390 and the output is like that

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:8390            0.0.0.0:*               LISTEN
tcp6       0      0 [::]:8390               [::]:*                  LISTEN
udp        0      0 0.0.0.0:8390            0.0.0.0:*
udp6       0      0 [::]:8390               [::]:*

not really sure what to do about that since i am new to administrating docker and linux

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