Last active
July 25, 2017 18:23
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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