title: C# cannot connect to SQL Databse
body: <p>I just try to connect on a SqlDatabse(running with Xampp) with a IP, but when i start to connect a Error shows up:</p>
  <blockquote>
  <p>A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server)\nA network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server)</p>
  </blockquote>
  <p>here the Code:</p>
  <pre class="lang-cs prettyprint-override"><code>string connetionString;
  SqlConnection cnn;
  connetionString = @&quot;Data Source=(IP from Laptop with XAMPP);Initial Catalog=hoffmann;User ID=root;&quot;;
  cnn = new SqlConnection(connetionString);
  cnn.Open();
  cnn.Close();
  </code></pre>