How to connect to a WCF service using IP of the host machine where the service is hosted?
- by Kumar
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?