Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
For web hosted, you can access your client address via the following:
Code Snippet
- string clientAddress = HttpContext.Current.Request.UserHostAddress;
For self hosted, you can access your client address via the following:
Code Snippet
- object property;
- Request.Properties.TryGetValue(typeof(RemoteEndpointMessageProperty).FullName, out property);
- RemoteEndpointMessageProperty remoteProperty = property as RemoteEndpointMessageProperty;
Hope this helps.