I'm using the following code to read the ip address and port from a client that connects to my service:
//Read IP-address and port
MessageProperties messageProperties = OperationContext.Current.IncomingMessageProperties;
RemoteEndpointMessageProperty endpointProperty = messageProperties[RemoteEndpointMessageProperty.Name] as RemoteEndpointMessageProperty;
string ip = endpointProperty.Address;
string port = endpointProperty.Port.ToString();
If I connect with a wpf client using netTcp binding I can read the proper ip adress and port number but if I connect with a SL4-client with the PollingDuplex the ip adress is empty and the port is 0. Why is that?
Thanks for help!
EDIT: I noticed that it works as supposed for Silverlight 3 so this seems to be SL4 specific.
View Complete Post