When you use the discovery client channel in Windows Communication Foundation, the Endpoint.Address property is always set to http://schemas.microsoft.com/dynamic


Symptoms


In Windows Communication Foundation, if you discover a service by using a DynamicEndpoint or by using a custom binding that contains a DiscoveryClientBindingElement, then the Endpoint.Address property will be set to http://schemas.microsoft.com/dynamic.

Cause


This is by design. The Endpoint.Address value reflects what the user passed in and therefore is not changed.

Resolution


To access the address of the discovered service, use the RemoteAddress property in the channel.