private string GetClientIP() { System.ServiceModel.Channels.RemoteEndpointMessageProperty clientEndpoint = System.ServiceModel.OperationContext.Current.IncomingMessageProperties[ System.ServiceModel.Channels.RemoteEndpointMessageProperty.Name] as System.ServiceModel.Channels.RemoteEndpointMessageProperty; return String.Format( "{0}:{1}", clientEndpoint.Address, clientEndpoint.Port); }
.Net and Xamarin Developer