title: Solaris 11 XOpenDisplay return NULL
body: <p>I am getting problem while running following program over Solaris 11. The XOpenDisplay function always return NULL. The same program run fine over Solaris 10.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;X11/Xlib.h&gt;
  
  int main(int argc, char** argv) {
      Display *ptr = 0;
  
  
      ptr = XOpenDisplay("machine_name:0.0");
  
      if (0 == ptr)
      {
          printf("NULL received\n");
      }
      else
      {
          printf("Valid pointer received\n");
      }
  
      return 0;
  }
  </code></pre>
  
  <p>During investigation I have found that the Solaris 11 do not accept direct X11 connections by using the TCP protocol.
  I have enabled the TCP for X11-server using the following command.</p>
  
  <pre><code>svccfg -s x11-server setprop options/tcp_listen=true
  </code></pre>
  
  <p>But during calling the function XOpenDisplay still returns the NULL and now I am getting the error as "no protocol specified".</p>