← 返回文章列表

Shadowsocks problem with config file


title: Shadowsocks problem with config file author: Aynakeya tags:

  • shadowsocks
  • tutorial
  • solution categories:
  • Developing date: 2019-09-03 13:45:23

In the default shadowsocks config file, the server ip is 127.0.0.1

#config file example
{
    "server":["::1", "127.0.0.1"],
    "mode":"tcp_and_udp",
    "server_port":PORT,
    "local_port":1080,
    "password":"password",
    "timeout":60,
    "method":"chacha20-ietf-poly1305"
}

However, 127.0.0.1 only allow the local connection, so you can't connect to the server from client.

Therefore, to fix this problem, you should change the ip 127.0.0.1 into 0.0.0.0

#config file example
{
    "server":["::1", "0.0.0.0"],
    "mode":"tcp_and_udp",
    "server_port":PORT,
    "local_port":1080,
    "password":"password",
    "timeout":60,
    "method":"chacha20-ietf-poly1305"
}

Restart the ss-server, you can now connect to your shadowsocks server successfully.