Question: wcf how to get client ip address?
Answer: private string GetClientAddress() { // creating object of service when request comes. OperationContext context = OperationContext.Current; //Getting Incoming Message details. MessageProperties prop = context.IncomingMessageProperties; //Getting client endpoint details from message header.