To 標頭目標位址,即 EndpointAddressListenUri未指定時兩者相同。程式碼驗證:
foreach (var se in host.Description.Endpoints)
Console.WriteLine($"Logical: {se.Address} | Physical: {se.ListenUri}");

host.AddServiceEndpoint(typeof(ICalculator), new WSHttpBinding(),
"urn:calcservice", // 邏輯位址
new Uri("https://localhost:8887/CalculatorService")); // 實體位址
<endpoint address="urn:calcservice"
binding="wsHttpBinding"
contract="..."
listenUri="https://localhost:8887/CalculatorService" />
WSDL 僅公開邏輯位址。客戶端需透過 ClientViaBehavior 指定實體位址發送訊息,但 SOAP To 標頭仍保持邏輯位址:
<endpointBehaviors>
<behavior name="calculatorEndpointBehavior">
<clientVia viaUri="https://localhost:8887/CalculatorService" />
</behavior>
</endpointBehaviors>

訊息篩選器依 To 標頭(邏輯位址)比對 AddressFilter,實現路由轉發。
https://localhost:8887/CalculatorServiceclientVia 指向 tcpTrace (https://localhost:8080/CalculatorService)

https://localhost:8887/CalculatorService,實體=https://localhost:8080/CalculatorService
邏輯/實體位址分離是 WCF 路由、攔截、負載平衡的核心基礎,配合 ClientViaBehavior 與 ListenUri 靈活構建中介架構。