# Setting the HTTP port for Keycloak-X

**URL:** <https://forum.keycloak.org/t/setting-the-http-port-for-keycloak-x/12461>\
**Category:** Configuring the server\
**Created:** [December 5, 2021, 2:16pm UTC](https://forum.keycloak.org/t/setting-the-http-port-for-keycloak-x/12461 "2021-12-05T14:16:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![xgp](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/xgp/32/2589_2.png) [@xgp](https://forum.keycloak.org/u/xgp)\
**Post date:** [December 5, 2021, 2:16pm UTC](https://forum.keycloak.org/t/setting-the-http-port-for-keycloak-x/12461/1 "2021-12-05T14:16:43Z")

</div>

Hello,

Trying to run Keycloak-X using an alternate HTTP port. According to this doc [keycloak-community/configuration.md at main · keycloak/keycloak-community · GitHub](https://github.com/keycloak/keycloak-community/blob/main/design/keycloak.x/configuration.md#dynamic-options)

I should be able to do this:

```auto
$ ./bin/kc.sh --http.port=8180 start-dev
Unknown option: '--http.port=8180'

```

but i get an “Unknown option” error.

Any ideas? Thank you!

---

<div class="post-metadata">

**Author:** ![DominikGuhr](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/dominikguhr/32/4548_2.png) [@DominikGuhr](https://forum.keycloak.org/u/DominikGuhr)\
**Post date:** [December 8, 2021, 2:38pm UTC](https://forum.keycloak.org/t/setting-the-http-port-for-keycloak-x/12461/2 "2021-12-08T14:38:06Z")

</div>

Hey, sorry for the late reply. You should use --http-port instead of http.port, then it’ll work 🙂 CLI is all dash-case. The new Version of Keycloak.X, which will be shipped together with KC16, will bring many enhancements, e.g. command completion for bash/zsh, so feel free to try it out by getting latest main from github and building via mvn clean install -DskipTests -Pdistribution 😉

---

<div class="post-metadata">

**Author:** ![xgp](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/xgp/32/2589_2.png) [@xgp](https://forum.keycloak.org/u/xgp)\
**Post date:** [December 8, 2021, 3:03pm UTC](https://forum.keycloak.org/t/setting-the-http-port-for-keycloak-x/12461/3 "2021-12-08T15:03:25Z")

</div>

> [@DominikGuhr](#):
>
> –http-port

That works, but not with `start-dev`.

Thanks for the tips. I’ll check out the upcoming version.

---

<div class="post-metadata">

**Author:** ![DominikGuhr](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/dominikguhr/32/4548_2.png) [@DominikGuhr](https://forum.keycloak.org/u/DominikGuhr)\
**Post date:** [December 8, 2021, 4:42pm UTC](https://forum.keycloak.org/t/setting-the-http-port-for-keycloak-x/12461/4 "2021-12-08T16:42:56Z")

</div>

No problem. You are right, there was a bug in 15 w.r.t. this. It’s solved in latest main, see attached screenshot 🙂

 ![Screenshot 2021-12-08 at 17.40.17](https://global.discourse-cdn.com/free1/uploads/keycloak/original/2X/5/5fb79cdc0640967a4cafa3c740093a13906a3bf9.jpeg)

---

<div class="post-metadata">

**Author:** ![alexsunny123](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@alexsunny123](https://forum.keycloak.org/u/alexsunny123)\
**Post date:** [December 29, 2021, 12:14pm UTC](https://forum.keycloak.org/t/setting-the-http-port-for-keycloak-x/12461/5 "2021-12-29T12:14:40Z")

</div>

> [@xgp](#):
>
> > [@DominikGuhr](#):
> >
> > –http-port
> 
> That works, but not with `start-dev` .
> 
> Thanks for the tips. I’ll check out the upcoming version.

thanks for the awesome information.

---

<div class="post-metadata">

**Author:** ![alexsunny123](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@alexsunny123](https://forum.keycloak.org/u/alexsunny123)\
**Post date:** [November 10, 2022, 2:23pm UTC](https://forum.keycloak.org/t/setting-the-http-port-for-keycloak-x/12461/6 "2022-11-10T14:23:51Z")

</div>

> [@alexsunny123](#):
>
> > [@xgp](#):
> >
> > > [@DominikGuhr](#):
> > >
> > > –http-port
> > 
> > That works, but not with `start-dev` .
> > 
> > Thanks for the tips. I’ll check out the upcoming version[.](https://ometv.onl)[.](https://chatroulette.top)
> 
> thanks for the awesome information.

thanks my issue has been fixed.
