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

Configuring IPv4 and IPv6 to listen on the same port? #192

Open
achirkin opened this issue Nov 18, 2018 · 1 comment
Open

Configuring IPv4 and IPv6 to listen on the same port? #192

achirkin opened this issue Nov 18, 2018 · 1 comment

Comments

@achirkin
Copy link

The basic example of keter-config.yaml suggests to listen IPv4 interfaces only:

listeners:
    - host: "*4"
      port: 80

If I add another listener:

listeners:
    - host: "*4"
      port: 80
    - host: "*6"
      port: 81

then everything works fine - keter is accessible on http://[ipv6::addr]:81/. However, if I try to use port 80 for both listeners, keter does not start. If I remove "4" from the host line:

listeners:
    - host: "*"
      port: 80

then keter listens on IPv4 only.

Is there a way to make keter listen both IPv4 and IPv6 on the same port?

@idcm
Copy link

idcm commented Mar 24, 2019

If I try to use port 80 for both listeners, only IPv4 work, IPv6 connection is refused. When I use yesod, the same thing also happen.

I find use "!6", both IPv4 and v6 can connect.

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

2 participants