WCF/WF - WCF: NetTcpBinding and security mode none

Asked By Tridip Bhattacharjee on 30-Oct-12 04:27 AM

i wrote a small WCF apps which works fine in same pc when i do not specify anything for security mode but when i try same apps in two pc at my home then WCF client can not communicate with WCF server but when i change the code bit like

new NetTcpBinding(SecurityMode.None)

then all started work when i test it on two PC at my how.

so my question is when there will be some kind of security like below

    new NetTcpBinding(SecurityMode.MessageNone);
    new NetTcpBinding(SecurityMode.Transport);
    new NetTcpBinding(SecurityMode.TransportWithMessageCredential);

then how could i run WCF client & server on different PC. turn off the security is not good way to solve the problem...there must be some way out. so please tell me what i need to configure in both the machine where WCF server & client both run. if i need to change in code then what change i need to do. thanks

Robbe Morris replied to Tridip Bhattacharjee on 30-Oct-12 09:17 AM
The other security modes require the server to have an SSL certificate installed.  You'll need to purchase one from your hosting company.