title: what is servaddr.sin_addr.s_addr=INADDR_ANY
body: <p>In socket programming what does </p>
  
  <pre><code>servaddr.sin_addr.s_addr=INADDR_ANY;
  </code></pre>
  
  <p>in a client program do actually? What does INADDR_ANY mean? </p>
  
  <p>Also in another source found in the internet, I found</p>
  
  <pre><code>servaddr.sin_addr.s_addr=inet_addr(argv[1]);
  </code></pre>
  
  <p>What is this step doing? I think I have to enter the server ip as argument in that client wants to get connected to. Am I correct?</p>