Connecting to RabbitMQ via hostname/ip (using NServiceBus)
<p>I am using NServiceBus (5.x) with RabbitMQ (3.6) as the transport. This connection string works:</p>

<pre><code> &lt;connectionStrings&gt;
&lt;add name="NServiceBus/Transport"
     connectionString="host=localhost;username=****;password=***;RequestedHeartbeat=600;"/&gt;
&lt;/connectionStrings&gt;
</code></pre>

<p>But on the same server (where RabbitMQ server is installed), using host name or IP doesn't work:</p>

<pre><code> &lt;connectionStrings&gt;
&lt;add name="NServiceBus/Transport"
     connectionString="host=myServerPC;username=****;password=***;RequestedHeartbeat=600;"/&gt;
&lt;/connectionStrings&gt;
</code></pre>

<p>I get this error:</p>

<pre><code>2016-04-04 14:37:45.370 ERROR NServiceBus.Transports.RabbitMQ.RabbitMqConnectionManager Failed to connect to Broker: 'myServerPC', Port: 5672 VHost: '/'. ExceptionMessage: 'None of the specified endpoints were reachable'
</code></pre>

<p>I have tried the following:</p>

<ol>
<li>Created my own admin user (not guest) and verified it by logging into the RabbitMQ Management UI. Works from remote machine too. All using myServerPC.</li>
<li>Installed license for NServicebus using Service Insight -> Register.</li>
</ol>

<p>Thank you!</p>