# Trying to run two instances of rabbitMQ for Nameko

**URL:** <https://discourse.nameko.io/t/trying-to-run-two-instances-of-rabbitmq-for-nameko/307>\
**Category:** Github Issues\
**Created:** [August 13, 2018, 9:33am UTC](https://discourse.nameko.io/t/trying-to-run-two-instances-of-rabbitmq-for-nameko/307 "2018-08-13T09:33:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattbennett](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.nameko.io/mattbennett/32/13_2.png) [@mattbennett](https://discourse.nameko.io/u/mattbennett)\
**Post date:** [August 13, 2018, 9:33am UTC](https://discourse.nameko.io/t/trying-to-run-two-instances-of-rabbitmq-for-nameko/307/1 "2018-08-13T09:33:16Z")

</div>

_From @sammy200592 on Mon Jul 02 2018 23:01:15 GMT+0000 (UTC)_  
  
Hi Matt,

I tried the method you suggested on the link  
[https://github.com/nameko/nameko/issues/498](https://github.com/nameko/nameko/issues/498)

I did this:  
**AMQP\_URI: amqp://guest:guest@localhost:562/;amqp://guest:guest@localhost:5672/**

This works fine when my first port address is set to the correct port i.e 5672 **but** it gives me an **error** when the **first port is wrong** and the **second port is right** just like in the case above.

I am trying this for the Nameko service and getting the following error:  
**OSError: [Errno 61] ECONNREFUSED**  
  
_Copied from original issue: [https://github.com/nameko/nameko/issues/552](https://github.com/nameko/nameko/issues/552)_
