6
votes

I'm trying to make a self hosted WCF app that uses nettcpbinding but works in an environment without a domain.

It's just two regular windows pc's, one is the server and the other one will be the client. The problem with this is that when I try to get the client to connect it's rejected because of the security settings.

Can you please point me in the right direction as to how I can get this scenario to work?

Should I (if possible) disable security? Is there another (hopefully simple) way to accomplish this?

Regards,

Daniel

1

1 Answers

2
votes

If you'd like to disable security for testing purposes, in the App.config of the WCF project, change the security element to <security mode="None" />, e.g.:

<bindings>
  <netTcpBinding>
    <binding name="netTcpBindingConfig" transferMode="Buffered" maxReceivedMessageSize="5242880">
      <readerQuotas maxArrayLength="5242880" />
      <security mode="None" />
    </binding>
  </netTcpBinding>
</bindings>

If you have a client, update the service reference to sync the security settings. Keep in mind that you should use some level of security in production environments.