title: How to use named pipes over network?
body: <p>I'm trying to create a connection over network via named pipes. I'm doing it as it says in  <a href="http://msdn.microsoft.com/en-us/library/aa365783%28v=VS.85%29.aspx" rel="nofollow">msdn</a>. I create pipes server side with function. </p>
  
  <pre><code>CreateNamedPipe(
                       "\\\\.\\pipe\\myNamedPipe",
                       DUPLEX | FILE_FLAG_OVERLAPPED,
                       0,
                       255,
                       BUFFER_SIZE,
                       BUFFER_SIZE,
                       0,
                       IntPtr.Zero);
  </code></pre>
  
  <p>and trying to connect via CreateFile() function</p>
  
  <pre><code>CreateFile(
                    "\\\\10.0.0.29\\pipe\\myNamedPipe",
                    GENERIC_READ | GENERIC_WRITE,
                    0,
                    IntPtr.Zero,
                    OPEN_EXISTING,
                    FILE_FLAG_OVERLAPPED,
                    IntPtr.Zero);
  </code></pre>
  
  <p>10.0.0.29 is server machines ip. If I'm trying to run client side program on server machine with pipe name "\\.\pipe\myNamedPipe" or "\\10.0.0.29\pipe\myNamedPipe" (10.0.0.29 is servers ip) or "\\localhost\pipe\myNamedPipe" it works fine.</p>
  
  <p>So how to use named pipes over network?</p>