I have a WCF service which is hosted in a Windows Service and has net.tcp endpoint. It is working fine when we have server and clients in the same domain. I am having problem when both server and clients are in the same LAN but on Workgroup. Could some how i can able to communicate on workgroup using nettcpbinding.
please dont touch server section of your binding.you need to modify client side.
add this codes to your channel :
channel.Credentials.Windows.ClientCredential.UserName = "username";
channel.Credentials.Windows.ClientCredential.Password = "password";
I were able to communicate on system in workgroup by remoing security. Mean's Setting sercurity to None on both Client and server in case of work group environment. for Domain environment i used same old security settings.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.