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

