# Configure Keycloak 20 port for start-dev

**URL:** <https://forum.keycloak.org/t/configure-keycloak-20-port-for-start-dev/19262>\
**Category:** Miscellanaeous\
**Created:** [December 22, 2022, 1:34pm UTC](https://forum.keycloak.org/t/configure-keycloak-20-port-for-start-dev/19262 "2022-12-22T13:34:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stw](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@stw](https://forum.keycloak.org/u/stw)\
**Post date:** [December 22, 2022, 1:34pm UTC](https://forum.keycloak.org/t/configure-keycloak-20-port-for-start-dev/19262/1 "2022-12-22T13:34:18Z")

</div>

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):

```auto
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:

```auto
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

---

<div class="post-metadata">

**Author:** ![stw](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@stw](https://forum.keycloak.org/u/stw)\
**Post date:** [December 22, 2022, 1:47pm UTC](https://forum.keycloak.org/t/configure-keycloak-20-port-for-start-dev/19262/2 "2022-12-22T13:47:03Z")

</div>

Found the correct configurion:

> **[All configuration - Keycloak](https://www.keycloak.org/server/all-config?q=http-port)**
>
> Keycloak is an open source identity and access management solution

---

<div class="post-metadata">

**Author:** ![stw](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@stw](https://forum.keycloak.org/u/stw)\
**Post date:** [February 1, 2023, 11:09am UTC](https://forum.keycloak.org/t/configure-keycloak-20-port-for-start-dev/19262/3 "2023-02-01T11:09:05Z")

</div>

`kc --verbose start-dev --debug 5050 --http-port 9009`
