title: How should I print server address
body: <pre><code>    int server_sockfd, client_sockfd; //server and client filedescriptors
      socklen_t server_len, client_len; 
      struct sockaddr_in server_address; //server address
      struct sockaddr_in client_address; //client address
      int server_port = 10000;
      char *def_server_address ="127.0.0.1";
  
      server_len = sizeof(server_address);
      memset(&amp;server_address, 0, server_len );
      server_address.sin_family = AF_INET;
  
      if (x == 1) {
          server_address.sin_addr.s_addr = INADDR_ANY;}
      else {
          server_address.sin_addr.s_addr = inet_addr(def_server_address);
      }
      server_address.sin_port = htons(server_port);
  </code></pre>
  
  <p>How should I print the address of the server from server_address? Using printf.</p>