积极答复者
求助!命名管道在局域网内通信的问题

问题
-
//客户端初始化 NamedPipeClientStream pipeClient =new NamedPipeClientStream( "[远程服务器名称]", "testpipe", PipeDirection.InOut, PipeOptions.Asynchronous, TokenImpersonationLevel.None); //服务端初始化 NamedPipeServerStream pipeServer = new NamedPipeServerStream( "testpipe", PipeDirection.InOut, 4, PipeTransmissionMode.Message, PipeOptions.Asynchronous);
用pipeServer.WaitForConnection()方法等待连接时,在本机测试没有问题,如果放到两台机器上,客户端连不上服务端,有没有人知道这是什么问题啊!是否需要什么别的设置,或者说命名管道不能进行远程连接!各位大神赐教啊!!!!!!!!!!!!!!!!!!!!!
答案
-
你好:
请检查一下防火墙设置。更多请参考MSDN文档中的实例代码:
另外建议你转移到WCF上,WCF可以实现命名管道,同时也可以实现其他方式的网络传输方式,相对来说更加强大。这里有一篇关于WCF如何实现进程内的通讯的文章:
WCF Tutorial - Basic Interprocess Communication
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- 已标记为答案 CaillenModerator 2014年11月24日 2:58
全部回复
-
你好:
请检查一下防火墙设置。更多请参考MSDN文档中的实例代码:
另外建议你转移到WCF上,WCF可以实现命名管道,同时也可以实现其他方式的网络传输方式,相对来说更加强大。这里有一篇关于WCF如何实现进程内的通讯的文章:
WCF Tutorial - Basic Interprocess Communication
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- 已标记为答案 CaillenModerator 2014年11月24日 2:58