# Change default port 4000 when using \`daml ledger navigator\`

**URL:** <https://forum.canton.network/t/change-default-port-4000-when-using-daml-ledger-navigator/685>\
**Category:** App Development\
**Created:** [June 19, 2020, 8:10am UTC](https://forum.canton.network/t/change-default-port-4000-when-using-daml-ledger-navigator/685 "2020-06-19T08:10:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![meet](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/meet/32/198_2.png) [@meet](https://forum.canton.network/u/meet)\
**Post date:** [June 19, 2020, 8:10am UTC](https://forum.canton.network/t/change-default-port-4000-when-using-daml-ledger-navigator/685/1 "2020-06-19T08:10:59Z")

</div>

How do I spin up the navigator on a different port instead of the default 4000 when using the `daml ledger navigator` command?

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [June 19, 2020, 8:19am UTC](https://forum.canton.network/t/change-default-port-4000-when-using-daml-ledger-navigator/685/2 "2020-06-19T08:19:40Z")

</div>

`daml ledger navigator` passes all additional arguments down to the underlying `daml navigator` command. This is a bit tricky here since `daml ledger navigator` also takes a `--port` flag itself which specifies the port of the ledger while `daml navigator` takes a `--port` flag that specifies the port of Navigator.

1. If you already have a `--port` flag, you can add the Navigator port as a second flag via `daml ledger navigator --host ledgerhost --port ledgerport --port navigatorport`.
2. If you don’t have a `--port` flag, you need to add a bit of `--` to make sure that `daml ledger navigator` passes the `--port` flag down instead of interpreting it itself. Somewhat confusingly you need two here so `daml ledger navigator -- -- --port navigatorport` works. I’ll see if we can make that a bit less confusing.

---

<div class="post-metadata">

**Author:** ![anthony](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/anthony/32/419_2.png) [@anthony](https://forum.canton.network/u/anthony)\
**Post date:** [June 19, 2020, 2:45pm UTC](https://forum.canton.network/t/change-default-port-4000-when-using-daml-ledger-navigator/685/3 "2020-06-19T14:45:37Z")

</div>

> [@cocreature](#):
>
> need to add a bit of `--`

Missed opportunity to call it a “dash of `--`”
