4. March 2014 16:41
/
victor
/
/
Comments (0)
If you are doing web hosting, you can retrieve the ip address like:
var clientAddress = HttpContext.Current.Request.UserHostAddress;
Or if you do self-hosting, you can use this
object property;
Request.Properties.TryGetValue(typeof(RemoteEndpointMessageProperty).FullName, out property);
RemoteEndpointMessageProperty remoteProperty = property as RemoteEndpointMessageProperty;
5e002a87-ad69-48c4-ba37-292d37427000|0|.0|27604f05-86ad-47ef-9e05-950bb762570c
Tags :