文章内容

2018/1/13 0:24:05,作 者: 黄兵

socket.error problem: [Errno 99] Cannot assign requested address

Can anyone explain why it happens. I will appreciate it.

I use configuration

{
    "server":"***.****.**",
    "server_port":***,
    "local_address": "127.0.0.1",
    "local_port":1080,
    "password":"**********",
    "timeout":600,
    "method":"rc4",
    "fast_open": false
}

The log is as follows

2015-02-18 18:21:09 INFO     starting server at ********:***
Traceback (most recent call last):
  File "/bin/ssserver", line 9, in <module>
    load_entry_point('shadowsocks==2.6.8', 'console_scripts', 'ssserver')()
  File "/usr/lib/python2.7/site-packages/shadowsocks/server.py", line 60, in main
    tcp_servers.append(tcprelay.TCPRelay(a_config, dns_resolver, False))
  File "/usr/lib/python2.7/site-packages/shadowsocks/tcprelay.py", line 584, in __init__
    server_socket.bind(sa)
  File "/usr/lib64/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 99] Cannot assign requested address

产生这个问题的原因是:Server的ip地址不正确

解决方案:

Maybe your server ip not your real ip. Run ifconfig ensure ip is right !

参考资料:socket.error problem: [Errno 99] Cannot assign requested address

分享到:

发表评论

评论列表