title: Named Pipes Across Network Gives "The user name or password is incorrect"
body: <p>To Anyone who can help!  I have been trying to have a c# application that talks named pipes work across a network between two pc's.  The applications work perfectly on the same pc and on pc's within the same domain.  But I have issues when one pc is in a "Workgroup" and one is on a domain.  Security on the server is not an issue, I can make it as open as possible.</p>
  
  <p>Background Info:</p>
  
  <ol>
  <li>Client - PC is in a domain, can connect to server via c$ admin share</li>
  <li>Server - Not in a domain, application running as a console, firewall disabled, enabled "Allow inbound file and printer sharing" Port 445.</li>
  </ol>
  
  <p>It seems that I cannot access any named pipes on the remote server.  Code:</p>
  
  <pre><code>// Client Connection
  PipeStream pipe = new NamedPipeClientStream("192.168.1.102", "TEMP_PIPE", PipeDirection.InOut, PipeOptions.Asynchronous, TokenImpersonationLevel.None);
  ((NamedPipeClientStream)pipe).Connect();
  
  
  // Server Connection
  PipeSecurity pipeSecurity = new PipeSecurity();
  pipeSecurity.AddAccessRule(new PipeAccessRule("Everyone", PipeAccessRights.ReadWrite | PipeAccessRights.CreateNewInstance, AccessControlType.Allow));
  PipeStream pipe = new NamedPipeServerStream("TEMP_PIPE", PipeDirection.InOut, NamedPipeServerStream.MaxAllowedServerInstances, PipeTransmissionMode.Message,
                  PipeOptions.Asynchronous, 0, 0, pipeSecurity);
  </code></pre>
  
  <p>When I attempt to connect to the server from the client Connect() I receive a "The user name or password is incorrect." error.</p>
  
  <p>I am stuck, not sure if this is a C# .Net named pipes issue or a Windows issue?  I am inclined to believe I need to enable named pipes somehow in windows, but not sure how (because of the username/password error).  Any help is greatly appreciated.  Thanks in advance!</p>