IPv6 listener support
See original GitHub issueDescription
Keycloak 17.0.0 defaults to listening on IPv4 addresses only (0.0.0.0). If I try to listen on IPv6, it says the protocol family is unavailable:
# sudo -u keycloak /opt/keycloak/bin/kc.sh start --http-host="[::]"
...
2022-02-25 14:50:38,518 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Unable to start HTTP server
2022-02-25 14:50:38,519 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: java.net.SocketException: Protocol family unavailable
2022-02-25 14:50:38,520 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Protocol family unavailable
Environment: Ubuntu 20.04, regular (not Wildfly) distribution.
Discussion
No response
Motivation
It is 2022, and it should be possible to run servers either in IPv6-only environments, or dual-stack where the service is accessible via both protocols.
Details
No response
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:8 (4 by maintainers)
Top Results From Across the Web
How to Configure a Listener for Both IPv6 and IPv4 Addresses
ora file to listen for both IPv4 and IPv6 addresses. Solution. Sign In. To view full details, sign in with your My Oracle...
Read more >Configuring an IPv6 Listener | Axigen Documentation
Adding a IPv6 listener for a service is no different than adding a IPv4 listener. E.g. we identify the IP address that Axigen...
Read more >IPv6 Support - Imperva Documentation Portal
Imperva provides IPv6 support of both client-side and server-side IPv6 traffic. This means that IPv6 is supported both for traffic between your end...
Read more >IPv6 Support in EFT
The following areas of EFT support IPv6 addresses: ... A. You can choose a single listener IP address, all incoming IPv4 addresses, all...
Read more >IPv6 support for Vault – HashiCorp Help Center
From Vault configuration, IPv6 can be used on Vault Configuration file listener TCP parameter localhost , cluster_addr and api_addr.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Confirmed here:
JAVA_OPTS="-Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m"
in the environment (which overrides the defaultJAVA_OPTS
set by kc.sh) enables dual stack listening. I don’t even need to sethttp-host
. So this looks like a good workaround - thank you!No worries. I am happy to edit the script as needed after a reinstall.