Hi,
i’d like to let keycloak listen to a different port than the default 8080 one, but it seems to ignore all settings I tried so far. What I’ve tried (but doesn’t work):
kc --verbose start-dev --debug 5050 --hostname-url=http://localhost:9009 -Dquarkus.http.port=9009
Neither did -Dkeycloak.http.port=9009
or setting the KEYCLOAK_HTTP_PORT
environment variable work.
It considers the debug port and the hostname, but the actual listening port isn’t changed:
Listening for transport dt_socket at address: 5050
2022-12-22 14:25:22,257 INFO [org.keycloak.quarkus.runtime.hostname.DefaultHostnameProvider] (main) Hostname settings: Base URL: http://localhost:9009, Hostname: localhost, Strict HTTPS: false, Path: /, Strict BackChannel: false, Admin URL: <unset>, Admin: <request>, Port: 9009, Proxied: false
...
2022-12-22 14:25:26,576 INFO [io.quarkus] (main) Keycloak 20.0.2 on JVM (powered by Quarkus 2.13.3.Final) started in 6.004s. Listening on: http://0.0.0.0:8080
2022-12-22 14:25:26,576 INFO [io.quarkus] (main) Profile dev activated.
(note the line where it says Listening on: http://0.0.0.0:8080
)
How can I change the port keycloak listens to when I start it locally? (no docker container)
Thanks!
BR stw