Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

listen tcp: address [...] too many colons in address #20

Closed
Alireza2n opened this issue Mar 17, 2019 · 6 comments
Closed

listen tcp: address [...] too many colons in address #20

Alireza2n opened this issue Mar 17, 2019 · 6 comments

Comments

@Alireza2n
Copy link

Alireza2n commented Mar 17, 2019

Hi,
I have built ck-client from souce (using latest code from master branch) inside a docker container. The server runs fine, but while attempting to run ck-client I ran into this errors:

 2019-03-17 06:41:57 INFO: plugin "/go/github.com/cbeuw/Cloak/build/ck-client" enabled
 2019-03-17 06:41:57 INFO: initializing ciphers... chacha20-ietf-poly1305
 2019-03-17 06:41:57 INFO: listening at 0.0.0.0:1080
 2019-03-17 06:41:57 INFO: udprelay enabled
2019/03/17 06:41:57 ck-client.go:158: Listening for ss on ::1:45643
2019/03/17 06:41:57 ck-client.go:160: listen tcp: address ::1:45643: too many colons in address
 2019-03-17 06:41:57 INFO: running from root user
 2019-03-17 06:41:57 ERROR: plugin service exit unexpectedly

Any ideas?

Thanks

@malikshi
Copy link

yeah its made server cant be accessed by client, should restart the service

@Alireza2n
Copy link
Author

yeah its made server cant be accessed by client, should restart the service

Thanks, I'll give it a go and tell what happened. :)

@cbeuw
Copy link
Owner

cbeuw commented Mar 23, 2019

Actually this issue is due to IPv6 addresses not being in square brackets and then concatenated to a port (e.g. ::1:45643). The proper way to represent IPv6 with a port is [a:b:c:d]:xyz. I have fixed this in release 1.1.0

@NAVrasZ
Copy link

NAVrasZ commented Mar 24, 2019

@cbeuw Connect using ipv6 only (i.e. "[::]") and got this

Mar 24 02:14:46 vultr.guest ss-server[2251]:  2019-03-24 02:14:46 INFO: tcp server listening at [::1]:50039
Mar 24 02:14:46 vultr.guest ss-server[2251]:  2019-03-24 02:14:46 INFO: udp server listening at [::]:443
Mar 24 02:14:46 vultr.guest ss-server[2251]:  2019-03-24 02:14:46 INFO: running from root user
Mar 24 02:14:46 vultr.guest ss-server[2251]: 2019/03/24 02:14:46 ck-server.go:260: Listening on [::]:443
Mar 24 02:14:47 vultr.guest ss-server[2251]: 2019/03/24 02:14:47 ck-server.go:157: New session from UID:*******, sessionID:*****
Mar 24 02:14:56 vultr.guest ss-server[2251]: 2019/03/24 02:14:56 ck-server.go:172: Failed to connect to ssserver: dial tcp: address ::1:50039: too many colons in address
Mar 24 02:14:57 vultr.guest ss-server[2251]: 2019/03/24 02:14:57 ck-server.go:172: Failed to connect to ssserver: dial tcp: address ::1:50039: too many colons in address
Mar 24 02:15:09 vultr.guest ss-server[2251]: 2019/03/24 02:15:09 ck-server.go:172: Failed to connect to ssserver: dial tcp: address ::1:50039: too many colons in address
Mar 24 02:15:12 vultr.guest ss-server[2251]: 2019/03/24 02:15:12 ck-server.go:172: Failed to connect to ssserver: dial tcp: address ::1:50039: too many colons in address

Thx

@cbeuw
Copy link
Owner

cbeuw commented Mar 24, 2019

Oops sorry I missed one line which needed the square brackets.
It's fixed in v1.1.1

@Klaaktu
Copy link

Klaaktu commented Nov 24, 2019

Hi, it seems there is another one in ck-client:
ck-client -i ::1

level=info msg="Starting standalone mode"
level=info msg="Listening on UDP [::1]:1984 for shadowsocks client"
level=fatal msg="address ::1:1984: too many colons in address"

ck-client -i [::1]

level=info msg="Starting standalone mode"
level=info msg="Listening on UDP [[::1]]:1984 for shadowsocks client

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants