How To set the ClientBase Address To be Routable

Hi All

Using the WCF service, I just finished writing a little pub/sub e-mail application that resembles outlook (a little bit some how)

The WCF service I Created uses a Duplex communication and when an a new email is sent for an online client, the service automatically invokes a call back event attached to the client.

In order for the service to find the client, the client first has to provide its base address on the binding information of the client side when it subscribes to the service.

Now everything works fine as long as I am on local area network but if I am on a different subnet or I am trying to access the service form a different network, then the service can not find the client and Vise versa

How should I set the client side bassaddress in order for it to be avalbe for the service. Keep in mind that the client's IP address might not be Routable.

here is my Config file for the client

################################################################################

<?xmlversion="1.0"encoding="utf-8"?>

<configuration>

<system.serviceModel>

<bindings>

<wsDualHttpBinding>

<bindingname="WSDualHttpBinding_IDataExchange"

clientBaseAddress="http://wrk-eshi:8000/DataExchange"

<reliableSessionordered="true"inactivityTimeout="00:10:00" />

<securitymode="None">

<messageclientCredentialType="Windows"negotiateServiceCredential="true" />

</security>

</binding>

</wsDualHttpBinding>

</bindings>

<client>

<endpointaddress="http://Vm-DEMO:7777/DataExchangeService"binding="wsDualHttpBinding"

bindingConfiguration="WSDualHttpBinding_IDataExchange"contract="IDataExchange"

name="WSDualHttpBinding_IDataExchange" />

</client>

</system.serviceModel>

</configuration>

###################################################################################

Thanks in advance for any help you might provide

Peace

[6970 byte] By [Mamush] at [2007-12-23]
# 1
It looks like there are switches or NATs (maybe even even firewalls?) that hinder the communication on the callback channel.
You know, using WsDualHttp uses *two* connections: one from the caller to the calle and one for the callbacks. So please check and double-check your infrastructure configuration and look whether your machine is actually addressable from all the other subnets and networks.

Cheers,

ChristianWeyer at 2007-8-30 > top of Msdn Tech,Visual Studio Orcas,Windows Communication Foundation (Indigo)...
# 2

Thanks For the Suggestion.

Assuming my machine is not is actually addressable (routable) what could i Do to configure the Network Address Trans.. to deliver the messge to the specifyed node

thanks again

Mamush at 2007-8-30 > top of Msdn Tech,Visual Studio Orcas,Windows Communication Foundation (Indigo)...
# 3
... and this is where nobody in this forum (likely) can help you.
It all depends on your actual network topology and hardware configuration. So it would be best to dig into those manuals or talk to your admin (ouch!).

WCF cannot change the way the Internet (stack) works.

Cheers,

ChristianWeyer at 2007-8-30 > top of Msdn Tech,Visual Studio Orcas,Windows Communication Foundation (Indigo)...

Visual Studio Orcas

Site Classified