Thank you, those guys who looked at my Topic.
I have solved my problem.
SO....
on client I put on Try....catch block method (MyName)
then i could to read the error. before then the program was closed.
try
{
string line = Console.ReadLine();
Console.WriteLine(channel.MyName(line));
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
Console.ReadKey();
gauged error was
a remote side security requirement was not fulfilled during authentication. TRy increasing the ProtectionLevel and/or ImpersonationLevel
then i changed Security settings on Host app
static NetTcpBinding bbb = new NetTcpBinding();
......
ServiceEndpoint tcpEndpoint = customerHost.AddServiceEndpoint(
typeof(IService1), bbb,
"net.tcp://192.168.1.102:9020/Service1");
bbb.Security.Mode = SecurityMode.None;
And on client app....
NetTcpBinding bbb = new NetTcpBinding();
bbb.Security.Mode = SecurityMode.None;