title: Winsock failed to connect to local ip address
body: <p>I have used the following code in a form that acts like a server,  </p>
  
  <pre><code>WskServer(0).Close  
  LocalIP = WskServer(0).LocalIP  
  WskServer(0).LocalPort = DEFAULT_TCP_PORT  
  WskServer(0).Protocol = sckTCPProtocol  
  txtStatus.Text = "Starting server"  
  Call WskServer(0).Bind(DEFAULT_TCP_PORT, LocalIP)  
  WskServer(0).Listen
  </code></pre>
  
  <p>when i execute above code,i received the following error<br>
  <strong>"Address is not available from the local machine"</strong> . </p>
  
  <p>If i changed the line</p>
  
  <pre><code>Call WskServer(0).Bind(DEFAULT_TCP_PORT, LocalIP)  
  </code></pre>
  
  <p>to </p>
  
  <pre><code>Call WskServer(0).Bind(DEFAULT_TCP_PORT, "127.0.0.1")  this is working 
  </code></pre>
  
  <p>What's wrong with the code?, can anybody give the fix</p>
  
  <p><strong>Update</strong><br>
  I just removed the line Call WskServer(0).Bind(DEFAULT_TCP_PORT, LocalIP) now server working properly. this way is correct or not</p>