May 10, 2011 at 4:30 PM
Edited May 10, 2011 at 4:31 PM
Is it possible to detect client information in the server e.g. client ipAddress.
I have integrated a security system which controls a "data write" authorization for specified clients by the clients ipaddress.
Is it possible to detect the ipAddress with the operationContext or the webOperationContext?
I know that this is possible:
OperationContext context = OperationContext.Current;
MessageProperties messageProperties = context.IncomingMessageProperties;
RemoteEndpointMessageProperty endpointProperty =
messageProperties[RemoteEndpointMessageProperty.Name] as RemoteEndpointMessageProperty;
ipAddress = endpointProperty.Address;