server_socket.bind(sa)故障

时间:2018-11-16 16:16:48

标签: python networking

在Ubuntu服务上,我想设置shadowsocks服务。我使用以下命令来安装此软件包:

$ pip install shadowsocks

然后

$ ssserver -c /etc/Shadowsock.json

而后者给了我以下错误:

$ ssserver -c /etc/Shadowsock.json 
INFO: loading config from /etc/Shadowsock.json
2018-11-16 16:06:44 INFO     loading libcrypto from libcrypto.so.1.1
2018-11-16 16:06:44 INFO     starting server at 3.0.103.80:8388
Traceback (most recent call last):
  File "/usr/local/bin/ssserver", line 11, in <module>
    load_entry_point('shadowsocks==3.0.0', 'console_scripts', 'ssserver')()
  File "/usr/local/lib/python2.7/dist-packages/shadowsocks/server.py", line 74, in main
    tcp_servers.append(tcprelay.TCPRelay(a_config, dns_resolver, False))
  File "/usr/local/lib/python2.7/dist-packages/shadowsocks/tcprelay.py", line 754, in __init__
    server_socket.bind(sa)
  File "/usr/lib/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 99] Cannot assign requested address

/etc/Shadowsocks.json在下面

{
  "server":"3.0.103.80",
  "server_port":8388,
  "local_address":"127.0.0.1",
  "local_port":1080,
  "password":"dmlsgdsbhhh",
  "timeout":300,
  "method":"aes-256-cfb",
  "fast_open": false
}

有人可以帮助我调查此异常的原因吗?

1 个答案:

答案 0 :(得分:-1)

"server":"0.0.0.0",