Get Client's Mac address at server side in WCF service C#\ [duplicate]
问题 This question already has answers here : Obtaining client IP address in WCF 3.0 (3 answers) Closed 2 hours ago . I have WCF service hosted as windows service, I am trying to get clients (WPF client) Mac address at server end (WCF side). I have tried using following line of code but it gives me IP address of client that too in ::1 format. RemoteEndpointMessageProperty prop = OperationContext.Current.IncomingMessageProperties[RemoteEndpointMessageProperty.Name] as RemoteEndpointMessageProperty;