Skip to content

Instantly share code, notes, and snippets.

@e23z
Last active July 25, 2017 18:23
Show Gist options
  • Save e23z/218d1d6e4f85b434c68bedee70ff2c7f to your computer and use it in GitHub Desktop.
Save e23z/218d1d6e4f85b434c68bedee70ff2c7f to your computer and use it in GitHub Desktop.
[Remote IpAddress .NET Core] How to get the client remote ip address with .net core. #csharp #tips #mvc #netcore
public string RemoteIp => _httpContextAccessor.HttpContext.Connection.RemoteIpAddress.ToString();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment