# How can we change the port number in latest version?

**URL:** <https://forum.rasa.com/t/how-can-we-change-the-port-number-in-latest-version/11234>\
**Category:** Rasa Open Source\
**Created:** [June 10, 2019, 12:12pm UTC](https://forum.rasa.com/t/how-can-we-change-the-port-number-in-latest-version/11234 "2019-06-10T12:12:56Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mounika1](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@Mounika1](https://forum.rasa.com/u/Mounika1)\
**Post date:** [June 10, 2019, 12:12pm UTC](https://forum.rasa.com/t/how-can-we-change-the-port-number-in-latest-version/11234/1 "2019-06-10T12:12:56Z")

</div>

Hi,

In rasa old version we had an availability of changing port number but now rasa nlu and rasa core were merged , now how can we change port number in latest version of rasa and in which files we need to make changes?

thanks in advance!

---

<div class="post-metadata">

**Author:** ![JulianGerhard](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juliangerhard/32/3781_2.png) [@JulianGerhard](https://forum.rasa.com/u/JulianGerhard)\
**Post date:** [June 10, 2019, 12:29pm UTC](https://forum.rasa.com/t/how-can-we-change-the-port-number-in-latest-version/11234/2 "2019-06-10T12:29:46Z")

</div>

Hi @Mounika1,

I’d recommend you to read:

> **[Command Line Interface](https://rasa.com/docs/rasa/command-line-interface/)**
>
> Command line interface for open source chatbot framework Rasa. Learn how to train, test and run your machine learning-based conversational AI assistants

if you start the bot via cmd, then it would be

`rasa run [-h] [-v] [-vv] [--quiet] [-m MODEL] [--log-file LOG_FILE] [--endpoints ENDPOINTS] [-p PORT]`

depending on which port you want to configure. Otherwise you either have the possibility to modify config.yml for possible Extractor ports or endpoints/credentials.

If you need help, feel free to ask.

Regards

---

<div class="post-metadata">

**Author:** ![Mounika1](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@Mounika1](https://forum.rasa.com/u/Mounika1)\
**Post date:** [June 12, 2019, 5:18am UTC](https://forum.rasa.com/t/how-can-we-change-the-port-number-in-latest-version/11234/3 "2019-06-12T05:18:42Z")

</div>

what files we need to mention in the above command along with port number or how can I modify config.yml for possible extractor ports.

---

<div class="post-metadata">

**Author:** ![JulianGerhard](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juliangerhard/32/3781_2.png) [@JulianGerhard](https://forum.rasa.com/u/JulianGerhard)\
**Post date:** [June 12, 2019, 6:10am UTC](https://forum.rasa.com/t/how-can-we-change-the-port-number-in-latest-version/11234/4 "2019-06-12T06:10:07Z")

</div>

Hi @Mounika1

a default could be: `rasa run -vv -m models/ --endpoints endpoints.yml -p 5005`

If you e.g. use duckling as an extractor, your config.yml should contain:

```
  - dimensions:
    - time
    - duration
  locale: de_DE
  name: DucklingHTTPExtractor
  timezone: Europe/Berlin
  url: http://localhost:8001

```

In which you could just modify the port to your wishes.

Did that help?

---

<div class="post-metadata">

**Author:** ![Mounika1](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@Mounika1](https://forum.rasa.com/u/Mounika1)\
**Post date:** [June 12, 2019, 7:35am UTC](https://forum.rasa.com/t/how-can-we-change-the-port-number-in-latest-version/11234/5 "2019-06-12T07:35:46Z")

</div>

yeah, I tried this and the port number is changing by running above command but still showing the previous bot instead of new one. How can I fix this?

---

<div class="post-metadata">

**Author:** ![JulianGerhard](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juliangerhard/32/3781_2.png) [@JulianGerhard](https://forum.rasa.com/u/JulianGerhard)\
**Post date:** [June 12, 2019, 7:40am UTC](https://forum.rasa.com/t/how-can-we-change-the-port-number-in-latest-version/11234/6 "2019-06-12T07:40:29Z")

</div>

What do you mean by “previous bot”?

If you are talking about a specific model, you can use the path to this model as the command line argument for “-m”…

Do you try to run several bots alongside?

---

<div class="post-metadata">

**Author:** ![Mounika1](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@Mounika1](https://forum.rasa.com/u/Mounika1)\
**Post date:** [June 12, 2019, 7:41am UTC](https://forum.rasa.com/t/how-can-we-change-the-port-number-in-latest-version/11234/7 "2019-06-12T07:41:59Z")

</div>

yeah I am running 3 bots using different port numbers

---

<div class="post-metadata">

**Author:** ![JulianGerhard](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juliangerhard/32/3781_2.png) [@JulianGerhard](https://forum.rasa.com/u/JulianGerhard)\
**Post date:** [June 12, 2019, 7:50am UTC](https://forum.rasa.com/t/how-can-we-change-the-port-number-in-latest-version/11234/8 "2019-06-12T07:50:09Z")

</div>

Okay, then I need to know more about your setup:

- Does every bot have its own directory in terms of the rasa file/directory structure?
- Are you using separate action and/or nlg server?
- Are you using any credentials/endpoints that might lead to duplicate ports?

---

<div class="post-metadata">

**Author:** ![Mounika1](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@Mounika1](https://forum.rasa.com/u/Mounika1)\
**Post date:** [June 12, 2019, 8:11am UTC](https://forum.rasa.com/t/how-can-we-change-the-port-number-in-latest-version/11234/9 "2019-06-12T08:11:38Z")

</div>

yeah, every bot has its own directory in terms of the rasa file/directory structure I am using the same action server for 2 bots in credentials I am not using anything that leads to duplicate ports but in endpoints I am mentioning same action server for 2 bots

---

<div class="post-metadata">

**Author:** ![JulianGerhard](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juliangerhard/32/3781_2.png) [@JulianGerhard](https://forum.rasa.com/u/JulianGerhard)\
**Post date:** [June 12, 2019, 1:35pm UTC](https://forum.rasa.com/t/how-can-we-change-the-port-number-in-latest-version/11234/10 "2019-06-12T13:35:51Z")

</div>

Okay, so based on what I read you have to do:

Open Terminal 1:

`rasa run -m <directory_of_bot_1>/<path_to_model>/<modelname> --endpoints <directory_of_bot_1>/endpoints.yml --credentials <directory_of_bot_1>/credentials.yml -p 5005`

Open Terminal 2:

`rasa run -m <directory_of_bot_1>/<path_to_model>/<modelname> --endpoints <directory_of_bot_1>/endpoints.yml --credentials <directory_of_bot_1>/credentials.yml -p 5006`

However, if you want to interact with the HTTP API of each bot, you have to specify:

```
rest:

```

in the credentials and then you would be able to request:

```
http://localhost:5005/webhooks/rest/webhook
http://localhost:5006/webhooks/rest/webhook

```

Did that help you?

I would by the way recommend you to use docker-compose for this type of scenario.

Regards

---

<div class="post-metadata">

**Author:** ![Mounika1](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@Mounika1](https://forum.rasa.com/u/Mounika1)\
**Post date:** [June 13, 2019, 11:44am UTC](https://forum.rasa.com/t/how-can-we-change-the-port-number-in-latest-version/11234/11 "2019-06-13T11:44:39Z")

</div>

I tried that but still I am facing the same issue. Do I need to change actions server port too??

---

<div class="post-metadata">

**Author:** ![JiteshGaikwad](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@JiteshGaikwad](https://forum.rasa.com/u/JiteshGaikwad)\
**Post date:** [July 11, 2019, 1:04pm UTC](https://forum.rasa.com/t/how-can-we-change-the-port-number-in-latest-version/11234/12 "2019-07-11T13:04:22Z")

</div>

hey @Mounika1, you can change the port using the below command

> rasa run -m models --enable-api --cors “\*” --debug -p 5004

---

<div class="post-metadata">

**Author:** ![Mounika1](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@Mounika1](https://forum.rasa.com/u/Mounika1)\
**Post date:** [July 12, 2019, 5:58am UTC](https://forum.rasa.com/t/how-can-we-change-the-port-number-in-latest-version/11234/13 "2019-07-12T05:58:06Z")

</div>

while running bot by using the above command it is not displaying any bot there, it is just displaying an empty page.

---

<div class="post-metadata">

**Author:** ![luofanghao](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/luofanghao/32/3717_2.png) [@luofanghao](https://forum.rasa.com/u/luofanghao)\
**Post date:** [October 25, 2019, 8:38pm UTC](https://forum.rasa.com/t/how-can-we-change-the-port-number-in-latest-version/11234/14 "2019-10-25T20:38:12Z")

</div>

how to change the port of action server, if we are using the rasa/rasa-sdk Docker image? [Docker Hub](https://hub.docker.com/r/rasa/rasa-sdk/dockerfile)

---

<div class="post-metadata">

**Author:** ![luofanghao](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/luofanghao/32/3717_2.png) [@luofanghao](https://forum.rasa.com/u/luofanghao)\
**Post date:** [October 28, 2019, 3:31pm UTC](https://forum.rasa.com/t/how-can-we-change-the-port-number-in-latest-version/11234/16 "2019-10-28T15:31:36Z")

</div>

solved: [How to start multiple bot in one docker-compose](http://forum.rasa.com/t/how-to-start-multiple-bot-in-one-docker-compose/20485/4)

---

<div class="post-metadata">

**Author:** ![pranay\_raj](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@pranay\_raj](https://forum.rasa.com/u/pranay_raj)\
**Post date:** [January 22, 2020, 8:25am UTC](https://forum.rasa.com/t/how-can-we-change-the-port-number-in-latest-version/11234/17 "2020-01-22T08:25:47Z")

</div>

@JulianGerhard COuld you please help me with this?? [Performance issue with action end point](http://forum.rasa.com/t/performance-issue-with-action-end-point/21849/10)
