title: How to connect Remote RabbitMQ Server
body: <p>I am going to build application (Asp.net C#) to connect RabbitMQ server  which is in another country. </p>
  
  <p>So my question is how to connect that server.
  I already installed RabbitMQ Client from NuGet Packages.</p>
  
  <p>Is that needed to run RabbitMQ service in my local machine ? </p>
  
  <p>Need to install RabbitMQ Server in my local machine?</p>
  
  <p>From Client some of the parameters i got like
  UserName, Password, HostName, Certificate with private key.</p>
  
  <p>I am curious to know which are the basic steps to connect that server from my localhost application.</p>
  
  <p>Can someone provide blog to refer ?
  I already tried with different steps but not able to connect.</p>
  
  <pre><code>            string vCertSubjectName = "CN=DevRepo, OU=IT, O=OLX, L=KTM, S=Surrey, C=UK";
              ConnectionFactory factory = new ConnectionFactory();
              factory.AuthMechanisms = new AuthMechanismFactory[] { new ExternalMechanismFactory() };
              factory.HostName = "195.168.0.15";
              factory.Port = 5673;
              factory.Ssl.Certs = getCertificate(vCertSubjectName);
              factory.Ssl.ServerName = System.Net.Dns.GetHostName();
              factory.Ssl.Enabled = true;
              factory.Ssl.Version = SslProtocols.Tls12;
              IConnection connection = factory.CreateConnection();
  </code></pre>
  
  <p>Error coming like connection.start was never received, likely due to a network timeout."</p>