title: Connect to Azure Service Bus from a Worker Role using AMQP
body: <p>I am trying to connect to my Azure Service Bus from my Worker Role using AMQP. However, I get a time-out exception. When I use a network sniffer I see that it is trying to communicate to the Azure Service Bus using port 5671. But it's not sending an ACK message, it just times-out. I try this from Visual Studio 2015 with the Azure Emulator.</p>
  
  <p>When I try exactly the same, from the same computer and network interface, but then from a normal command prompt application (so no Azure Worker Role and/or Emulator), it works. My application is able to send an ACK package to Azure and receives a Server Hello from Azure.</p>
  
  <p>Is the Azure Emulator or the Worker Role blocking some ports by default? Why is it working from my command prompt application but not from my Azure Worker Role? I use the same connectionstring and the following code:</p>
  
  <pre><code>TopicClient client = TopicClient.CreateFromConnectionString(_connectionstring, _queueName);
  client.Send(new BrokeredMessage(msg));
  </code></pre>