Hello.
i'm using next piece of code to get client ip on wcf service :
OperationContext context = OperationContext.Current;
System.ServiceModel.Channels.MessageProperties prop = context.IncomingMessageProperties;
System.ServiceModel.Channels.RemoteEndpointMessageProperty endpoint = prop[System.ServiceModel.Channels.RemoteEndpointMessageProperty.Name] as System.ServiceModel.Channels.RemoteEndpointMessageProperty;
string ip = endpoint.Address;
while this code worked on iis6/server2003 everything were ok, endpoint.Address returned ipv4. but after i recently updated to iis7/server2008 endpoint.Address is returning ipv6.
is it still possible to get ipv4 on iis7/server2008 ?
Thank You !