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

Fails to start when ipv4 and ipv6 use the same port for listen address #9

Closed
bhanupratapys opened this issue Oct 16, 2019 · 3 comments

Comments

@bhanupratapys
Copy link

 listen_addrs = [
     { local = "0.0.0.0:1443",    external = "a.a.a.a:1443" },
     { local = "[::]:1443",       external = "[bb:bb::1]:1443" }
 ]

I tried starting the program with above code, it always stops with [ERROR] Unable to listen to the requested IPs and ports: [[::]:1443/TCP: Address already in use (os error 98)].

It works perfectly fine when I change the port values for either one of ipv4/ipv6 address.

@IceCodeNew
Copy link

Run ss -nlp 'sport = :1443' as root and reply with the command output please.

@bhanupratapys
Copy link
Author

Run ss -nlp 'sport = :1443' as root and reply with the command output please.

There is nothing running on the above mentioned port. I don't think this issue is related to some other program running on that port.

@jedisct1
Copy link
Member

It's a Linux specific behavior where listening to an IPv6 wildcard socket also listens to IPv4.

It should be fixed now.

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

3 participants