How to connect to a WCF service using IP of the host machine where the service is hosted?

Posted by Kumar on Programmers See other posts from Programmers or by Kumar
Published on 2011-11-12T08:31:22Z Indexed on 2011/11/12 10:13 UTC
Read the original article Hit count: 301

Filed under:

I have a secured WCF service (https://<MachineName>:sslport/services) self hosted in a machine. Different instances of same service are deployed in differnt machines. From a client app, I am able to connect to theses services through code, i.e. using ChannelFactory() with the same endpoint address.

But if I try to access the service using the endpoint address as https://<ipAddress>:sslport/services replacing machines name with machine IP address, I am getting some error stating "could not establish trust relationship".

I know this is an error caused by SSL certificate that it could not establish a trust relationship.

Are there any settings or any possibilities to make this work?

enter image description here

© Programmers or respective owner

Related posts about wcf