# How to change kibanas default port

**URL:** <https://discuss.elastic.co/t/how-to-change-kibanas-default-port/302104>\
**Category:** Kibana\
**Created:** [April 11, 2022, 1:26pm UTC](https://discuss.elastic.co/t/how-to-change-kibanas-default-port/302104 "2022-04-11T13:26:54Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![gustavoluza](https://avatars.discourse-cdn.com/v4/letter/g/d2c977/32.png) [@gustavoluza](https://discuss.elastic.co/u/gustavoluza)\
**Post date:** [April 11, 2022, 1:26pm UTC](https://discuss.elastic.co/t/how-to-change-kibanas-default-port/302104/1 "2022-04-11T13:26:54Z")

</div>

Hi, whe i need to access my kibana from a browser, i need to put ip:5601, how i change the default kibanas port that to use 443 port and just use [https://ip](https://ip) to access kibana?

---

<div class="post-metadata">

**Author:** ![FALEN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/falen/32/82754_2.png) [@FALEN](https://discuss.elastic.co/u/FALEN)\
**Post date:** [April 11, 2022, 2:19pm UTC](https://discuss.elastic.co/t/how-to-change-kibanas-default-port/302104/2 "2022-04-11T14:19:28Z")

</div>

Best way to do this is using reverse proxy tools, such as Nginx

Its easy to use and configure

otherwise, you can change kibana port in kibana.yml "server.port:"

---

<div class="post-metadata">

**Author:** ![gustavoluza](https://avatars.discourse-cdn.com/v4/letter/g/d2c977/32.png) [@gustavoluza](https://discuss.elastic.co/u/gustavoluza)\
**Post date:** [April 11, 2022, 2:36pm UTC](https://discuss.elastic.co/t/how-to-change-kibanas-default-port/302104/3 "2022-04-11T14:36:38Z")

</div>

when i changed the server.port in kibana.yml i got an error but in my log, show nothing... just the service dont start

---

<div class="post-metadata">

**Author:** ![gustavoluza](https://avatars.discourse-cdn.com/v4/letter/g/d2c977/32.png) [@gustavoluza](https://discuss.elastic.co/u/gustavoluza)\
**Post date:** [April 12, 2022, 4:56pm UTC](https://discuss.elastic.co/t/how-to-change-kibanas-default-port/302104/4 "2022-04-12T16:56:53Z")

</div>

@FALEN in my kibanas log, i have this message when i set port 443 on server.port, do you know the reason?

```auto
"listen EACCES: permission denied 10.0.0.117:443","error":{"message":"listen EACCES: permission denied 10.0.0.117:443","type":"Error","stack_trace":"Error: listen EACCES: permission denied 10.0.0.117:443\n at Server.setupListenHandle [as _listen2] (node:net:1317:21)\n at listenInCluster (node:net:1382:12)\n at doListen (node:net:1520:7)\n at processTicksAndRejections (node:internal/process/task_queues:84:21)"},"log":{"level":"FATAL","logger":"root"},"process":{"pid":2052},"trace":{"id":"97fc45083cfb472094321fac6d037208"},"transaction":{"id":"10b6fc5655711ad6"}}

```

---

<div class="post-metadata">

**Author:** ![zx8086](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zx8086/32/94917_2.png) [@zx8086](https://discuss.elastic.co/u/zx8086)\
**Post date:** [April 12, 2022, 5:11pm UTC](https://discuss.elastic.co/t/how-to-change-kibanas-default-port/302104/5 "2022-04-12T17:11:24Z")

</div>

@gustavoluza Have you tried another port? Try for troubleshooting purposes 5602, instead of the default 5601.

See if that works to start with.

443 is reserved for SSL traffic.

---

<div class="post-metadata">

**Author:** ![gustavoluza](https://avatars.discourse-cdn.com/v4/letter/g/d2c977/32.png) [@gustavoluza](https://discuss.elastic.co/u/gustavoluza)\
**Post date:** [April 12, 2022, 5:42pm UTC](https://discuss.elastic.co/t/how-to-change-kibanas-default-port/302104/6 "2022-04-12T17:42:02Z")

</div>

@zx8086 thats works... but is possible work with 443 port on server.port?

---

<div class="post-metadata">

**Author:** ![zx8086](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zx8086/32/94917_2.png) [@zx8086](https://discuss.elastic.co/u/zx8086)\
**Post date:** [April 12, 2022, 6:58pm UTC](https://discuss.elastic.co/t/how-to-change-kibanas-default-port/302104/7 "2022-04-12T18:58:39Z")

</div>

@gustavoluza

No, to use 443 you need to enable SSL and use certificates in the short answer.

---

<div class="post-metadata">

**Author:** ![gustavoluza](https://avatars.discourse-cdn.com/v4/letter/g/d2c977/32.png) [@gustavoluza](https://discuss.elastic.co/u/gustavoluza)\
**Post date:** [April 12, 2022, 7:27pm UTC](https://discuss.elastic.co/t/how-to-change-kibanas-default-port/302104/8 "2022-04-12T19:27:43Z")

</div>

i solved, just need to apply some permissions to kibana work with 443 port in server.port parameter

```auto
# setcap cap_net_bind_service=+epi /usr/share/kibana/bin/kibana
# setcap cap_net_bind_service=+epi /usr/share/kibana/bin/kibana-plugin
# setcap cap_net_bind_service=+epi /usr/share/kibana/bin/kibana-keystore
# setcap cap_net_bind_service=+epi /usr/share/kibana/node/bin/node

```

thanks

---

<div class="post-metadata">

**Author:** ![zx8086](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zx8086/32/94917_2.png) [@zx8086](https://discuss.elastic.co/u/zx8086)\
**Post date:** [April 12, 2022, 7:57pm UTC](https://discuss.elastic.co/t/how-to-change-kibanas-default-port/302104/9 "2022-04-12T19:57:59Z")

</div>

It really isn't good practise for issue down the line... if you have an issue, the assumption is that you are following the standard setup.

---

<div class="post-metadata">

**Author:** ![gustavoluza](https://avatars.discourse-cdn.com/v4/letter/g/d2c977/32.png) [@gustavoluza](https://discuss.elastic.co/u/gustavoluza)\
**Post date:** [April 12, 2022, 8:28pm UTC](https://discuss.elastic.co/t/how-to-change-kibanas-default-port/302104/10 "2022-04-12T20:28:29Z")

</div>

yes... i know that, but its a requisite from the project... access kibana without use port and i cant use apache or nginx for that... so...

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 10, 2022, 8:29pm UTC](https://discuss.elastic.co/t/how-to-change-kibanas-default-port/302104/11 "2022-05-10T20:29:11Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
