title: Terminal Services -: Value does not fall within the expected range
body: <p>Test driving a remote desktop feature in an app but keep getting a weird error with the server name I'm putting in. </p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>        rdp.Server = txtServer.Text;
          rdp.UserName = txtUser.Text;
          IMsTscNonScriptable secured = (IMsTscNonScriptable)rdp.GetOcx();
          secured.ClearTextPassword = txtPass.Text;
          rdp.Connect();
  </code></pre>
  
  <p><strong>Keep getting the error:</strong></p>
  
  <pre><code>An unhandled exception of type 'System.ArgumentException' occurred in AxInterop.MSTSCLib.dll
  
  Additional information: Value does not fall within the expected range.
  </code></pre>
  
  <p><strong>On line:</strong></p>
  
  <pre><code> rdp.Server = txtServer.Text;
  </code></pre>
  
  <p><strong>txtServer.Text is being input as (but with a real address):</strong></p>
  
  <pre><code>123.456.789.10:1234
  </code></pre>
  
  <p>Anybody else had this issue?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>The issue is with the port in the address, how can I get around this?</p>