# Unable to start server-error while attempting to bind on address ('0.0.0.0', 5005)

**URL:** <https://forum.rasa.com/t/unable-to-start-server-error-while-attempting-to-bind-on-address-0-0-0-0-5005/27979>\
**Category:** Rasa Open Source\
**Created:** [April 24, 2020, 8:41am UTC](https://forum.rasa.com/t/unable-to-start-server-error-while-attempting-to-bind-on-address-0-0-0-0-5005/27979 "2020-04-24T08:41:17Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeevabalanmadhu](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/jeevabalanmadhu/32/10174_2.png) [@jeevabalanmadhu](https://forum.rasa.com/u/jeevabalanmadhu)\
**Post date:** [April 24, 2020, 8:41am UTC](https://forum.rasa.com/t/unable-to-start-server-error-while-attempting-to-bind-on-address-0-0-0-0-5005/27979/1 "2020-04-24T08:41:18Z")

</div>

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

[2020-04-24 14:09:28 +0530] [17600] [ERROR] Unable to start server Traceback (most recent call last): File “C:\Users\mjeevaba\AppData\Roaming\Python\Python37\site-packages\sanic\server.py”, line 895, in serve http\_server = loop.run\_until\_complete(server\_coroutine) File “c:\programdata\anaconda3\lib\asyncio\base\_events.py”, line 579, in run\_until\_complete return future.result() File “c:\programdata\anaconda3\lib\asyncio\base\_events.py”, line 1374, in create\_server % (sa, err.strerror.lower())) from None OSError: [Errno 10048] error while attempting to bind on address (‘0.0.0.0’, 5005): only one usage of each socket address (protocol/network address/port) is normally permitted

---

<div class="post-metadata">

**Author:** ![bparikh99](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/bparikh99/32/8327_2.png) [@bparikh99](https://forum.rasa.com/u/bparikh99)\
**Post date:** [April 24, 2020, 8:46am UTC](https://forum.rasa.com/t/unable-to-start-server-error-while-attempting-to-bind-on-address-0-0-0-0-5005/27979/2 "2020-04-24T08:46:44Z")

</div>

i think your port is aleady in use with some rasa command

---

<div class="post-metadata">

**Author:** ![jassi](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/jassi/32/8456_2.png) [@jassi](https://forum.rasa.com/u/jassi)\
**Post date:** [April 24, 2020, 9:32am UTC](https://forum.rasa.com/t/unable-to-start-server-error-while-attempting-to-bind-on-address-0-0-0-0-5005/27979/3 "2020-04-24T09:32:30Z")

</div>

I faced the same issue. You can resolve this by killing the process running on 5005 port.

Steps to kill the process:

**WINDOWS**

1. find the PID number by running:

`netstat -ano | findstr :5005`

1. Enter PID number below to kill the process

`taskkill /PID 5005 /F`

**MAC**

1. `kill $(lsof -t -i:5005)`

Source: [cmd - How do I kill the process currently using a port on localhost in Windows? - Stack Overflow](https://stackoverflow.com/questions/39632667/how-do-i-kill-the-process-currently-using-a-port-on-localhost-in-windows)

---

<div class="post-metadata">

**Author:** ![jeevabalanmadhu](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/jeevabalanmadhu/32/10174_2.png) [@jeevabalanmadhu](https://forum.rasa.com/u/jeevabalanmadhu)\
**Post date:** [April 26, 2020, 6:24am UTC](https://forum.rasa.com/t/unable-to-start-server-error-while-attempting-to-bind-on-address-0-0-0-0-5005/27979/4 "2020-04-26T06:24:26Z")

</div>

Thanks. when i run this in command line --\> netstat -ano | findstr :5005

C:\Users\mjeevaba\>`netstat -ano | findstr: 5005` ‘findstr:’ is not recognized as an internal or external command, operable program or batch file.

also failed `taskkill /PID 5005 /F`

although i can find the PID for port 0.0.0.0:5005 by running netstat -ano it was some number like 32145 changed the command `taskkill /PID 32145/F`

the ask got killed. thanks for resolution but why findstr was not working?

---

<div class="post-metadata">

**Author:** ![jassi](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/jassi/32/8456_2.png) [@jassi](https://forum.rasa.com/u/jassi)\
**Post date:** [April 27, 2020, 7:31am UTC](https://forum.rasa.com/t/unable-to-start-server-error-while-attempting-to-bind-on-address-0-0-0-0-5005/27979/5 "2020-04-27T07:31:44Z")

</div>

Glad I was of help.

Maybe this command would work:

```auto
netstat -a -n -o | find "123456"

```

I do not have windows installed so I cannot check it.

---

<div class="post-metadata">

**Author:** ![rajas.black](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rajas.black/32/15711_2.png) [@rajas.black](https://forum.rasa.com/u/rajas.black)\
**Post date:** [July 1, 2021, 1:03pm UTC](https://forum.rasa.com/t/unable-to-start-server-error-while-attempting-to-bind-on-address-0-0-0-0-5005/27979/6 "2021-07-01T13:03:12Z")

</div>

thanks, it worked. Need to capture the PID and kill it! Usually its because multiple RASA servers are running.

---

<div class="post-metadata">

**Author:** ![DamianVC](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/damianvc/32/21206_2.png) [@DamianVC](https://forum.rasa.com/u/DamianVC)\
**Post date:** [August 16, 2022, 9:59am UTC](https://forum.rasa.com/t/unable-to-start-server-error-while-attempting-to-bind-on-address-0-0-0-0-5005/27979/7 "2022-08-16T09:59:26Z")

</div>

Thank you. This helped me

---

<div class="post-metadata">

**Author:** ![Chamwy](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chamwy/32/21996_2.png) [@Chamwy](https://forum.rasa.com/u/Chamwy)\
**Post date:** [December 19, 2022, 9:23am UTC](https://forum.rasa.com/t/unable-to-start-server-error-while-attempting-to-bind-on-address-0-0-0-0-5005/27979/8 "2022-12-19T09:23:58Z")

</div>

Thanks a lots. It helped me.

---

<div class="post-metadata">

**Author:** ![gssawadadkar](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/gssawadadkar/32/23204_2.png) [@gssawadadkar](https://forum.rasa.com/u/gssawadadkar)\
**Post date:** [August 11, 2023, 2:29pm UTC](https://forum.rasa.com/t/unable-to-start-server-error-while-attempting-to-bind-on-address-0-0-0-0-5005/27979/9 "2023-08-11T14:29:45Z")

</div>

Thank you!!!
