title: RabbitMQ brokers on different machines
body: <p>The <a href="http://www.rabbitmq.com/tutorials/tutorial-one-python.html" rel="nofollow noreferrer">hello world example</a> in the tutorial section of rabbitMQ, asks just to change the hostname with the ip of the different machine. But that isn't working for me. I have tried 
  <a href="https://stackoverflow.com/questions/7168055/binding-external-ip-address-to-rabbit-mq-server">Binding external IP address to Rabbit MQ server</a>​
  but that didn't work. Is there something else that i need to do to the configuration file or the code?</p>
  
  <p>Here is the sending code </p>
  
  <pre><code>#!/usr/bin/env python
  import pika
  
  connection = pika.BlockingConnection(pika.ConnectionParameters(
      host='ip_address'))
  channel = connection.channel()
  
  channel.queue_declare(queue='hello')
  
  channel.basic_publish(exchange='',
                    routing_key='hello',
                    body='Hello World!')
  print " [x] Sent 'Hello World!'"
  connection.close()
  </code></pre>
  
  <p>And my receiving code which I am running on another machine </p>
  
  <pre><code>#!/usr/bin/env python
  import pika
  
  connection = pika.BlockingConnection(pika.ConnectionParameters(
      host='ip_address'))
  channel = connection.channel()
  
  channel.queue_declare(queue='hello1')
  
  print ' [*] Waiting for messages. To exit press CTRL+C'
  
  def callback(ch, method, properties, body):
      print " [x] Received %r" % (body,)
  
  channel.basic_consume(callback,
                    queue='hello',
                    no_ack=True)
  
  channel.start_consuming()
  </code></pre>
  
  <p>And the error I am getting is </p>
  
  <pre><code>No handlers could be found for logger "pika.adapters.base_connection"
  Traceback (most recent call last):
  
  File "send.py", line 25, in &lt;module&gt;
  'ip_address'))
   File "/usr/local/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py",    line 107, in __init__
     super(BlockingConnection, self).__init__(parameters, None, False)
   File "/usr/local/lib/python2.7/dist-packages/pika/adapters/base_connection.py", line 62, in __init__
  on_close_callback)
   File "/usr/local/lib/python2.7/dist-packages/pika/connection.py", line 590, in __init__
  self.connect()
   File "/usr/local/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py", line 206, in connect
     if not self._adapter_connect():
   File "/usr/local/lib/python2.7/dist-packages/pika/adapters/blocking_connection.py", line 275, in _adapter_connect
  raise exceptions.AMQPConnectionError(1)
  pika.exceptions.AMQPConnectionError: 1
  </code></pre>
  
  <p>I appreciate for you guys to take the time to help me.</p>