title: Connecting Remote Cassandra(1.2.1) Server
body: <p>I am running Cassandra 1.2.1 on a remote Windows server. I set the yaml settings as following;</p>
  
  <p>rpc_address: 0.0.0.0 
  start_native_transport: true</p>
  
  <p><strong>I can</strong> connect the remote Cassandra server from my laptop by typing the IP address and port number;</p>
  
  <p>connect XXX.XX.XX.XX/9160;</p>
  
  <p>on cassandra-cli.bat</p>
  
  <p><strong>But I can not</strong> connect the remote Cassandra server from my .Net Application. I use <em>casssandra-sharp</em>;</p>
  
  <pre><code>XmlConfigurator.Configure();
  using (ICluster cluster = ClusterManager.GetCluster("main"))
            Console.WriteLine("succeded");
  ClusterManager.Shutdown();
  </code></pre>
  
  <p>Here is the App.config;</p>
  
  <pre><code>  &lt;configSections&gt;
      &lt;section name="CassandraSharp" type="CassandraSharp.SectionHandler, CassandraSharp" /&gt;
    &lt;/configSections&gt;
  
    &lt;CassandraSharp&gt;
      &lt;Cluster name="main"&gt;
        &lt;Endpoints&gt;
          &lt;Server&gt;XXX.XX.XX.XX&lt;/Server&gt;
        &lt;/Endpoints&gt;
      &lt;/Cluster&gt;
    &lt;/CassandraSharp&gt;
  </code></pre>
  
  <p>The application throws "Can't find any valid endpoint" exception. When I run Cassandra locally and try to connect, this code block perfectly works.</p>
  
  <p>On remote server 9160 and 7000 ports are allowed on firewall. Any idea about the problem?</p>