Question : How to get client machine name from WCF Service

I know how to get the client's IP Address but I would prefer to get the machine name that made the request to a WCF Service.   Does anyone know how to do this?

Answer : How to get client machine name from WCF Service

I got it by doing the following.  Anyone else have a better approach?

Dns.GetHostByAddress(((RemoteEndpointMessageProperty)OperationContext.Current.IncomingMessageProperties[RemoteEndpointMessageProperty.Name]).Address).HostName;
Random Solutions  
 
programming4us programming4us