oyyd / encryptsocks

Encrypt your socks transmission.
BSD 3-Clause "New" or "Revised" License
141 stars 20 forks source link

Can't bind local port!!!!! #9

Closed LeeYunhang closed 8 years ago

LeeYunhang commented 8 years ago

root@crazyforcode:/usr/local/bin# localssjs -s 104.224.151.62 -p 9999 -l 127.0.0.1 -b 1080 -k 1234567890 -m aes-256-cfb -t 600 2016-06-16T18:39:49.330Z - error: udp_relay socket err: bind EADDRINUSE :::1080

system: linux ubuntu 14.04

When i config localssjs according to toturial, i meet this error.

oyyd commented 8 years ago

Hi, @niugeshenhua

2016-06-16T18:39:49.330Z - error: udp_relay socket err: bind EADDRINUSE :::1080

This indicates that the ipv6 binding has failed (depending on the environment) but it would have bind the ipv4 sucessfully. I should have made these logs clearer.

oyyd commented 8 years ago

@niugeshenhua Can you test whether it works and provide some more info?

LeeYunhang commented 8 years ago

Thank you for your report.

My config file as follows:(password was replaced with **) { "serverAddr": "104.224.151.62", "serverPort": 8083, "localAddr": "127.0.0.1", "localPort": 1080, "pacServerPort": 8090, "password": "*****", "timeout": 600, "method": "aes-256-cfb",

"level": "warn", "localAddrIPv6": "::1", "serverAddrIPv6": "::1" }

And my VPS has install shadowsocks for python rather than shadowsocks-js.

It has error as follows When i type "localssjs -c ./config.js".

2016-06-17T12:14:29.316Z - error: udp_relay socket err: bind EADDRINUSE :::1080

}

Did you need the more informations?