title: Connecting to remote SQL server using IP address
body: <p>I dont have so much experience in SQL server. I'm trying to connect to an SQL Server 2005 via IP address. My connection string is:</p>
  
  <pre><code>"Data Source=117.213.4.155,1433;Network Library=DBMSSOCN;Initial Catalog=PostDB;User ID="&lt;user&gt;";Password="&lt;password&gt;"
  </code></pre>
  
  <p>I'm getting this error:</p>
  
  <blockquote>
    <p>An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.)   </p>
  </blockquote>
  
  <p>I have enabled TCP/IP connection using Surface Configuration tool and I dont have a firewall now.</p>
  
  <p>So how can I solve this? And please give me some advice and insights about storing and retrieving data in remote SQL server. I have no other way to clarify this issue.
  Thank you in advance.</p>