# How do you configure (change) the default ports for Dgraph alpha and zero?

**URL:** <https://discuss.dgraph.io/t/how-do-you-configure-change-the-default-ports-for-dgraph-alpha-and-zero/17160>\
**Category:** App Development\
**Tags:** dgraph\
**Created:** [April 13, 2022, 11:08am UTC](https://discuss.dgraph.io/t/how-do-you-configure-change-the-default-ports-for-dgraph-alpha-and-zero/17160 "2022-04-13T11:08:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DoisKoh](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/doiskoh/32/9727_2.png) [@DoisKoh](https://discuss.dgraph.io/u/DoisKoh)\
**Post date:** [April 13, 2022, 11:08am UTC](https://discuss.dgraph.io/t/how-do-you-configure-change-the-default-ports-for-dgraph-alpha-and-zero/17160/1 "2022-04-13T11:08:13Z")

</div>

The documentation only lists the `--port_offset` flag to change the ports. Changing ports via the offset only affects the external ports - using `port_offset` causes the services to still attempt to connect to 5080 / 7080 (I end up with infinite retrying of those ports and the associated connection refused errors).

---

<div class="post-metadata">

**Author:** ![femaimi9527](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/femaimi9527/32/9808_2.png) [@femaimi9527](https://discuss.dgraph.io/u/femaimi9527)\
**Post date:** [May 19, 2022, 2:35am UTC](https://discuss.dgraph.io/t/how-do-you-configure-change-the-default-ports-for-dgraph-alpha-and-zero/17160/2 "2022-05-19T02:35:05Z")

</div>

i have the same problem in this session , it retry connection to the port many times ,i install the dgraph client in my ubuntu server , have you got any methods to solove this problem now ?
