NamedPipeClientStream, I haven't find what I should put there or show it should look, the .Net documentation about this class is not very explanatory. So in this state it catches The specified path is invalid but if I change the first param to @".\pipe" the program gets stuck in pipe.Connect() (but it is still possible to quit with ^C).