title: Unable to connect with remote RabbitMQ server
body: <p>I'm creating a client application with the idea of publish new messages to a remote RabbitMQ queue. I'm using MassTransit to create this client, and my code looks this way:</p>
  
  <pre><code>    static IBusControl CreateBus()
      {
          return Bus.Factory.CreateUsingRabbitMq(x =&gt;
          {             
              var host = x.Host(new Uri(ConfigurationManager.AppSettings["RabbitMQHost"]), h =&gt;
              {
                  h.Username("user");
                  h.Password("password");
              });
  
          });
      }
  
      static IRequestClient&lt;ISyncProject, IProjectSynced&gt; CreateRequestClient(IBusControl busControl)
      {
          var serviceAddress = new Uri(ConfigurationManager.AppSettings["ServiceAddress"]);
          IRequestClient&lt;ISyncProject, IProjectSynced&gt; client =
              busControl.CreateRequestClient&lt;ISyncProject, IProjectSynced&gt;(serviceAddress, TimeSpan.FromDays(1));
  
          return client;
      }
  
      private static async Task MainLogic(IBusControl busControl)
      {
          IRequestClient&lt;ISyncProject, IProjectSynced&gt; client = CreateRequestClient(busControl);
  
         //I'm using the client here as I show below, this part is not important it works with localhost
          IProjectSynced response = await client.Request(new ProjecToSync() { OriginalOOMID = OriginalOOMID });
      }
  </code></pre>
  
  <p>And the config file looks like this:</p>
  
  <pre><code>&lt;appSettings&gt;
  &lt;add key="RabbitMQHost" value="rabbitmq://ServerName" /&gt;
  &lt;add key="ServiceQueueName" value="queueName" /&gt;
  &lt;add key="ServiceAddress" value="rabbitmq://ServerName/queueName" /&gt;
  &lt;/appSettings&gt;
  </code></pre>
  
  <p>I'm not using guest user, I created a new one and I added all the rights as administrator.<br>
  <a href="https://i.stack.imgur.com/txAGX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/txAGX.png" alt="enter image description here"></a></p>
  
  <p>Now this code works if I run the client application in the same server where is running RabbitMQ and also changing <code>ServerName</code> by <code>localhost</code>. If I run the client in my local machine using whatever ServerName or IP address of server, RabbitMQ is blocking my connection:</p>
  
  <p><a href="https://i.stack.imgur.com/nM7LA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nM7LA.png" alt="enter image description here"></a></p>
  
  <p>I presume this is has to be with some configuration that I need to do in the server but I have not found it so far.</p>
  
  <p>One thing I noticed now is disk space is in red and and a big amount of generic exchanges have been created
  <a href="https://i.stack.imgur.com/DLdzF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DLdzF.png" alt="enter image description here"></a></p>