<p>I am able to do the following</p>
<p>telnet ip-of-server 15672</p>
<p>And I could connect to server from my consumer</p>
<p>I installed the server from debian repo. I did sudo apt-get install rabbitmq..</p>
<p>I did not do any other config and started testing the code.</p>
<p>My code portion is below</p>
<p>ConnectionFactory factory = new ConnectionFactory();<br>
    factory.setHost(&quot;40.221.94.235&quot;);<br>
    Connection connection = factory.newConnection();<br>
    Channel channel = connection.createChannel();<br>
 <br>
    channel.queueDeclare(&quot;Q&quot;, false, false, false, null);<br>
    System.out.println(&quot; [*] Waiting for messages. To exit press CTRL+C&quot;);<br>
QueueingConsumer consumer = new QueueingConsumer(channel);<br>
    channel.basicConsume(&quot;task_queue&quot;, true, consumer);<br>
 <br>
    while (true) {<br>
      QueueingConsumer.Delivery delivery = consumer.nextDelivery();<br>
      String message = new String(delivery.getBody());<br>
      System.out.println(&quot; [x] Received &#39;&quot; + message + &quot;&#39;&quot;);<br>
    }<br>
 <br>
With thanks and regards<br>
Balachandar<br>
 <br>
 <br>
 <br></p>
<div class="gmail_quote">On 16 May 2013 14:41, &quot;Tim Watson&quot; &lt;<a href="mailto:tim@rabbitmq.com" target="_blank">tim@rabbitmq.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word">Oh and one more thing.... You said...<div><blockquote type="cite"><p>I am not doing anything for authentication.</p></blockquote><div><div>What exactly are you doing to make a connection from host A to host B - what does your URL look like?</div>

<div><br></div><div>Cheers,</div><div>Tim</div></div></div></div><br>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div>