title: Can't connect to MongoDB from an ASP.Net application
body: <p>I downloaded the driver (version 2.4.4) and first I just want to connect and read some existing data.</p>
  
  <p>So I tried everything I found online. Here's my code:</p>
  
  <pre><code>MongoClientSettings settings = new MongoClientSettings();
  settings.Server = new MongoServerAddress(connectionString, 27017);
  var client = new MongoClient(settings);
  </code></pre>
  
  <p>my connectionString looks like this:</p>
  
  <pre><code>mongodb://x.x.x.x
  </code></pre>
  
  <p>and the error I'm getting is:</p>
  
  <pre><code> An exception of type 'System.ArgumentException' occurred in 
   MongoDB.Driver.Core.dll but was not handled in user code
  
   Additional information: 'mongodb://x.x.x.x:27017' is not a valid end point.
  </code></pre>
  
  <p>I couldn't find this error anywhere online. Please help :)</p>
  
  <p><strong>edit: I'm not using localhost and am running a real IP. the x.x.x.x is just for the question purpose.</strong></p>