title: Configuring mq websphere 7 with .net
body: <p>I am trying to connect to a remote queue using c#. 
  I tried many ways to connect to the remote queue but it always fails with common errors like: <code>MQRC_CHANNEL_CONFIG_ERROR</code> or <code>MQRC_HOST_NOT_AVAILABLE</code>.</p>
  
  <p>What I am doing is this: </p>
  
  <pre><code>        string channel = "QM_TEST.SVRCONN"; 
          string hostname = "&lt;serverIp&gt;"; 
          string queueName = "QM_TEST"; 
          string port = 1414; 
  
          props.Add(MQC.HOST_NAME_PROPERTY, hostname); 
          props.Add(MQC.CHANNEL_PROPERTY, channel); 
          props.Add(MQC.PORT_PROPERTY, port ); 
          props.Add(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES_MANAGED); 
  
          MQQueueManager mqQueue = new MQQueueManager(queueName, props); 
  </code></pre>
  
  <p>I have tried changing this but all failed. </p>
  
  <p>I think that my problem is the server configurations.. 
  can you point me to a full guide to how to configure a server and connect to it with .net? </p>
  
  <p>My problem is connecting to a REMOTE server using .net and not to a local server. </p>
  
  <p>Thank you!</p>