No connection error over ss-local (Check thread for setup tips)
Closed this issue · 0 comments
I am getting this error on my shadowsock client, opened the necessary ports by portforwarding on my router but to no avail:
System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it
This is my configuration file in ss-local:
{
"server": "0.0.0.0",
"server_port": 8388,
"local_address": "0.0.0.0",
"local_port": 1080,
"password": "test123!",
"timeout": 60,
"method": "chacha20-ietf-poly1305",
"fast_open": false,
"mode": "tcp_only"
}
ISSUE SOLVED
Portforward the local port and NOT the server port on your router.
PS (1): To see if shadowsock server is running under the port stated in your configuration. Enter the following command to verify to make sure the server is 0.0.0.0:<local_port>:
sudo netstat -tulpn | grep LISTEN
Example --> *0 0.0.0.0:1080 0.0.0.0:* LISTEN 12492/ss-local
PS (2): ss-local is for SOCK5 to client only which requires setting local proxy, however to allow system-wide access to shadowsocks, use ss-server as this configuration will allow direct system connection to the shadowsocks server WITHOUT the need to setup the local proxy.