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.
Background Info:
- Client - PC is in a domain, can connect to server via c$ admin share
- Server - Not in a domain, application running as a console, firewall disabled, enabled "Allow inbound file and printer sharing" Port 445.
It seems that I cannot access any named pipes on the remote server. 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);
When I attempt to connect to the server from the client Connect() I receive a "The user name or password is incorrect." error.
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!